Discount isn’t applied to WooCommerce API
-
Hello, I really like the plugin, works like a charm!
The issue I’m experiencing is lack of support for the discounts over the WC API. I have my own desktop software developed to operate over the orders and product of the store. Seems that when I try to load a product which is affected by the plugin the sale and regular price are received unmodified from the API. For example the price of the product is 10. I’ve made a 5% discount and the product displays 9.50 as sale price, which totally fine. But when I load the product via the API the price is 10. So sale price it’s not populated with the new price. An acceptable solution would be to modify the sale price field of the product in order to affect the API response. You need to hook into the API endpoint in order to modify it from what I remember.
Best regards,
Vanyo
- You must be logged in to reply to this topic.