Closed qtheuret closed 4 years ago
Hi @qtheuret,
I manage to reproduce the issue with PS:1.7.5.1. This issue is added to our bug roadmap.
Thanks!
As explained in the related PR, we won't bring back this class in the webservice as it was deprecated 7 years ago. New entrypoints have been added to cover the new class name from the API, we suggest to use them instead.
@Quetzacoalt91 As explained in the related PR, the order_cart_rule
is not available in the Prestashop API.
Can you tell me the name of the entrypoint to get order discounts ?
Well, by looking at the two messages you posted on here and on the PR, it looks like there's probably something I misunderstood. If you're looking for cart rules associated to an order (= used), it seems difficult to find this data.
It would not change the PR being closed as you were anyway dealing with a deprecated class, but using the class OrderCartRule
could help.
I'm reopening this issue, but as an improvement.
Describe the bug I have a connector Odoo <-> PrestaShop worked with PrestaShop 1.6.x. I tried to upgrade the connector to work with 1.7.x versions of PrestaShop, but with 1.7.x versions, the
order_discounts
is not available via WebServices, so my connector doesn't work.To Reproduce Steps to reproduce the behavior:
Advanced Parameters > WebServices
order_discounts
object is not availableAdditionnal information PrestaShop version: 1.7.x