PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Compatibily to Prestashop 1.7.7.8

Open totti240282 opened this issue 3 years ago • 12 comments

is it possible to make the library compatible with the latest version?

totti240282 avatar Oct 01 '21 10:10 totti240282

Are there many problems with the last Prestashop version? I'm new to Prestashop and I'm just looking for a .NET client.

christiantricarico avatar Oct 04 '21 15:10 christiantricarico

Yes.

totti240282 avatar Oct 04 '21 15:10 totti240282

Are you sure that the version number is 1.7.7.8, i think the problems start from the 1.7.8.0 version, however i've a lot of problem in creating/updating too, someone could fix?

AssCasc avatar Oct 15 '21 10:10 AssCasc

Prestashop 1.7.8.0 not work with this library 😱😱😱😱😱😱😱😱

sasciamorelli avatar Oct 22 '21 15:10 sasciamorelli

has anyone figured out what the problem can be?

sasciamorelli avatar Nov 10 '21 17:11 sasciamorelli

I'm using the library with version 1.7.7.8 without problems. I Add/Update products, images and available-stocks.

christiantricarico avatar Nov 10 '21 17:11 christiantricarico

in fact, it is version 1.7.8.0 that is the last that does not work with prestasharp

sasciamorelli avatar Nov 10 '21 18:11 sasciamorelli

True, the 1.7.7.8 version correctly work but the 1.7.8.0 version do not

AssCasc avatar Nov 11 '21 07:11 AssCasc

According to this issue in official prestashop github https://github.com/PrestaShop/PrestaShop/issues/26361 if you are setting, as i was, the position_in_category field you must:

For solving it :
- You must set id_category_default with an ID AND position_in_category with a value > 1.
- OR you must unset id_category_default AND position_in_category.

AssCasc avatar Nov 16 '21 11:11 AssCasc

According to this issue in official prestashop github PrestaShop/PrestaShop#26361 if you are setting, as i was, the position_in_category field you must:

For solving it :
- You must set id_category_default with an ID AND position_in_category with a value > 1.
- OR you must unset id_category_default AND position_in_category.

Hello. In my case i unset the property position_in_category... and i can create product...

IcuScc avatar Apr 28 '22 09:04 IcuScc

With Prestashop 1.7.8.X and PHP 7.4... after product is created, i can not get using a filter by reference. It returns to me zero results. if i create the product by hand in prestashop, the filter by reference works ok.

Any idea?

Thanks

IcuScc avatar Apr 28 '22 09:04 IcuScc

Hi good morning to all

I changed the way of filter

productosPs = PsProducto.GetByFilter(psFiltroRef, null, null);
by
productosPs = PsProducto.GetByFilter(psFiltroRef, null, "1");

using the limit parameters works for me the cerate and update products

i hope this answer works for you aswell.

see you

IcuScc avatar May 04 '22 09:05 IcuScc