• Resolved richiewev

    (@richiewev)


    I need it so that when the total amounts to £150, a 10% discount is applied to the total.

    How would I go about adding this, please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support EricStylemixThemes

    (@ericstylemixthemes)

    Hello @richiewev,

    Thank you for reaching out!

    In order to achieve your request, you can use the Formula field with if/else statements.

    Let’s say you have two Quantity fields (Screenshot) and if their summary will equal £150 the visitor will get a 10% discount (Screenshot). I will use the following statements in the formula field:

    if ((quantity_field_id_0 + quantity_field_id_1) >= 150) {
        (quantity_field_id_0 + quantity_field_id_1) - (quantity_field_id_0 + quantity_field_id_1) * 0.10
    } else {
        (quantity_field_id_0 + quantity_field_id_1)
    }

    Kind regards

    Thread Starter richiewev

    (@richiewev)

    Thank you so much! I had to play around a little, but that worked!

    Brilliant, thanks for getting back to me so fast as well!

    Kind regards,
    Rich

    Plugin Support EricStylemixThemes

    (@ericstylemixthemes)

    You are welcome @richiewev! 🙂

    If you’re satisfied with our response and think we are worth five stars, I would request you to post a review for our plugin.

    https://wordpress.org/plugins/cost-calculator-builder/#reviews 

    Your kind words will encourage our team a lot and we will get the motivation to deliver better products and services in the future.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘10% Discount Code’ is closed to new replies.