PrestaSharp icon indicating copy to clipboard operation
PrestaSharp copied to clipboard

Prestashop 1.7.8.0 not work with this library

Open sasciamorelli opened this issue 3 years ago • 2 comments

Library Version:

1.2.9

NuGet Package Url:

https://www.nuget.org/packages/PrestaSharp/1.1.0

Prestashop version:

1.7.8.0

Describe the Bug:

creating and updating products does not work every update operation we receive this response from prestashop: "L'oggetto nullable deve avere un valore." the english translation should be : "The nullable object must have a value"

sasciamorelli avatar Oct 27 '21 16:10 sasciamorelli

With Prestashop 1.7.8.X and PHP 7.4... i can add products unsetting the property position_in_category, but my new problem is that after product is created, i can not get it using a filter by reference. It returns to me zero results and i can not to make update.

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