How to get data from Sales booster -> quantity discounts?

This topic has 2 replies, 2 voices, and was last updated 1 years ago ago by Rose Tyler

  • Avatar: Atip
    Atip
    Participant
    October 24, 2023 at 12:08

    Hi! I’m developing dynamic price change when quantity is changed on a single product page for my website. I’m also using your awesome sales booster -> quantity discount.

    Question:
    How can I get values from sales booster -> quantity discount using PHP or JS? I’m interested in two values: intervals and discount amount.

    For example I have such settings in quantity discount:
    1-10 products = 10% discount
    11-20 products = 20% discount

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 24, 2023 at 15:51

    Hello, Atip,

    Thank you for contacting us and for using XStore.

    You can get those settings using PHP
    $discount = new Etheme_Sales_Booster_Quantity_Discounts;
    $discount->init();
    $discount->set_settings();
    Add product_id param to $discount->set_settings(product_id);
    to get specific product settings

    Kind Regards,
    8theme team

  • Viewing 2 results - 1 through 2 (of 2 total)

The issue related to '‘How to get data from Sales booster -> quantity discounts?’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.