• Resolved ghdunlimited

    (@ghdunlimited)


    I am trying to do a calculation using a Forminator form I built for a client.

    It is for music classes for kids.

    The minimum amount is $180, the max is $320.

    I want to be able to give a 15% discount if they use a coupon code which I have set up.

    The problem is, the discount auto-populates in the Grand Total before the coupon code is entered.

    How to ensure the Grand Total will have the correct amount regardless of whether the code has been entered?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @ghdunlimited,

    I hope this message finds you well.

    Can you please share an export of the form so that we can take a closer look at how the form is now configured and help you further?

    Please share the form using Pastebin.com or Google Drive. I hope the following guide comes in handy: https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    We look forward to hearing back from you and help you further.

    Kind Regards,
    Nebu John

    Thread Starter ghdunlimited

    (@ghdunlimited)

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @ghdunlimited ,

    Thanks for sharing the export, however, I’m a bit confused with the calculation workflow you have used, since the Discount amount is greater than the “Tuition Total (1)” the “Grand Total” will always show a negative number. I suppose that’s why you are looking to not display the value inside the Grand Total field?

    What you could do is to use two Calculation fields for Grand Total and display one field when the Coupon is added and another when the coupon isn’t added.

    Ie one Grand Total only have this calculation:
    ({calculation-2}+{calculation-3})

    And the 2nd total with the coupon:
    ({calculation-2}+{calculation-3})-({calculation-5})

    The above can be displayed based on the coupon code, for example:
    https://i.imgur.com/Skdog7S.png

    Could you please check and see whether the above fits your requirement?

    Kind Regards,

    Nithin

    Thread Starter ghdunlimited

    (@ghdunlimited)

    But does this still allow me to use Paypal as the payment gateway? I only see the option to associate it with one variable which would be Grand Total. Does it only calculate using the one that is visible?

    Thread Starter ghdunlimited

    (@ghdunlimited)

    Never mind. I figured it out. Thanks.

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