-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inserting products fails with Prestashop 1.7.3 #318
Comments
your solution doesn't break compatibility with versions 1.7 and higher |
Hello! , Can anyone tell me how I can put that new fields in PrestaSharp in my Visual Studio 2013 project? |
You have to edit Bukimedia/PrestaSharp and add the 2 fields. After that Bukimedia.PrestaSharp.Entities.product will have the 2 new fields. |
Hello, we just released the official NuGet release that fixes the related problem. Yo can find it searching by PrestaSharp in nuget repositories, or the release https://github.com/Bukimedia/PrestaSharp/releases/tag/1.0.0 Sorry for the delay and thanks for waiting. |
Hi
Prestashop 1.7.4.4 & 1.7.5 |
This issue haven't fixed yet, because I use the last version of Prestasharp, I try to add product to Prestahop 1.7.4.3 and it still appears. |
What version number are you using? |
1.0.5. The last version available in Nuget Package Manager |
Ok, thanks for the feedback, are you using an example similar as mentioned in @biovolt comment?:
If not, you'll help with your own code snippet :) |
I'm trying to set low_stock_alert and low_stock_threshold and the error still appears. |
ProductFactory productFactory = new ProductFactory(BaseUrl, Account, Password); //Here we assign several information inside of some properties productFactory.Add(p); |
Yes, I was digging into it yesterday, and it seems that in newer versions of PrestaShop, they consider 0 as "" on some webservice responses, I'll try to find a global solution for that. Thanks for your research on older issues. |
Thank you to you for your efforts, as soon as you find a solution please let us know. |
Mowcixo, Have you some news about that? Best regards |
There are two new fields, one of them can't be null, so inserting fails. The fields are
low_stock_alert
(a boolean/int) andlow_stock_threshold
(an int).I've put them in
product
and everything worked again, but I'm not sure if that will break compatibility with previous versions (maybe if the data is sent in the REST request it will fail, I can't test it right now).The text was updated successfully, but these errors were encountered: