• Resolved vankyy26

    (@vankyy26)


    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dina S.

    (@themehighsupport)

    Hi,

    Kindly note that we are applying discount for the product after it is added to the cart.

    Unfortunately, your requirement cannot be achieved using our plugin.

    Thank you!

    Thread Starter vankyy26

    (@vankyy26)

    Hello!

    I understand that, I’m suggesting a feature to improve. What I saw other competitive plugin do the following thing:
    They add additional metadata item to the product when requested via the API. The metadata item is fake, this means it is not stored into the metadata db table, they just attach it on the fly using a hook in the api function. So you get a pair “blabla_discount_price” : “9.50”. This should be completely enough in order 3rd party software to integrate with your plugin and be able to use your rules engine without having to deal with the heavy lifting (calculating all the rules on their own). Currently what I have to do is extract the rules from the wp_options table and implement the rule engine in the custom software from scratch. If metadata item is present it could easily be used as flag and override the sale price of the product. For cart based discounts this will not work of course, there is no cart in the custom software either. But for product discount that’s very useful.

    The reason I do not use the competitive plugin is the price, I cannot pay $70 monthly for simple category discount which we do once a month. Small stores simply cannot afford paying 5-10 pro plugins with monthly subscriptions.

    If you are not interested in developing such feature I’ll understand and I’ll have to deal with my own custom implementation from scratch.

    Best regards,

    Vanyo

    Dina S.

    (@themehighsupport)

    Hi @vankyy26 ,

    Thank you for your thoughtful suggestion and for sharing your experience with our plugin. We truly appreciate the time and effort you’ve put into understanding how our product works and how it could be improved.

    We understand the value of adding REST API hooks to retrieve all product and cart rules, and we are considering this feature for future versions. However, due to the complexity of our discount conditions—such as cart rules, user roles, and other dynamic factors—we are unable to pass discount prices as product metadata directly. This is because the discount calculations often depend on real-time factors that extend beyond static product data.


    For now, as you mentioned, you can access discount data using the get_option function from the wp_options table, which provides a way to integrate with your custom software.

    We are always looking to improve, and your feedback is invaluable. We’ll certainly keep your suggestion in mind as we continue to develop and enhance our plugin

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.