Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
155 stars 152 forks source link

Products getall() error #305

Closed polaije closed 5 years ago

polaije commented 6 years ago

Hi, My first test with Prestasharp was difficult. First I got an error 0x1F in products getall, I had to filter the response.content to eliminate this error. Second, the field id_product_redirected that is null, produced a type error, I had to modify the field in product.cs with long? to correct it.

Now the selection of products seems to work but I have a products count less than expected (1650 instead of 3142). Here is my code: ProductFactory ProductFact = new ProductFactory(BaseUrl, Account, Password); List<product> products = ProductFact.GetAll(); With the getbyfilter, it is the same, 1 in categorydefault instead of 9.

Do you have answers to my issues ?

Jean-Marie

polaije commented 6 years ago

Hi, Running the application one day later and everything the products count is now ok. Why the difference with yesterday ?

Another issue is the products count by id_category_default. When a product is in several categories, but well in category default, the filter does not select the product.

Jean-Marie

mowcixo commented 5 years ago

Hello @polaije, sorry for the delay. It should be fixed now in master (not in a release yet).

It probably failed with products that had associations. Let me know if it is fixed in your environment.

mowcixo commented 5 years ago

It should be fixed now with version 1.0.5.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.