Closed cbonnaure closed 5 years ago
Hello @cbonnaure, what are the filters you're appliying? Is there any possibility that you're using a multishop environment, and you have same products in various shops?
Hello @mowcixo, Thank's for your reply. I don't apply any filters. I don't use a multishop environment, so I don't have products in various shops.
The probleme is that I have subnodes "product" into main "product" nodes (cf XML example)
I updated my first comment to show the codes and XML (sorry, I didn't pay attention that it was hidden)
Ok @cbonnaure I see it now, I'll investigate and let you know soon. Thanks!
Thanks for the snippet @cbonnaure, it fixes getting order repeated messages too. Nex time try to make a PR! :)
It is changed in master now.
Thanks for your reply and have taken into account my issue. Ok, next time I would do a PR
Thanks for this great project !
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.
Library Version: 1.0.2
Prestashop version: 1.7.4.2
Describe the Bug: When using the ProductFactory to getAll Products, I get more Products than the Prestashop database
To Reproduce:
Expected Behavior: same products then the Prestashop database
From the xml result of the API request, into somme "product" node, there is an "accessories" node that contains "product" childs. So, when deserializing the document using root.Descendants(lowerName) , returned elements contains theses "product" subnodes.
At this time, to correct this issue, I add an If block to get only childs that match name from the first root's child
--- Bukimedia.PrestaSharp.Deserializers ------ HandleListDerivative