Title: Forminator Discount Calculation
Last modified: September 25, 2024

---

# Forminator Discount Calculation

 *  Resolved [ghdunlimited](https://wordpress.org/support/users/ghdunlimited/)
 * (@ghdunlimited)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/)
 * 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](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18037529)
 * Hi [@ghdunlimited](https://wordpress.org/support/users/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](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](https://wordpress.org/support/users/ghdunlimited/)
 * (@ghdunlimited)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18038670)
 * Here is the export: [https://drive.google.com/file/d/10oyJeBPuYPx3VD_Kg1kL7sgjeh3s9_An/view?usp=sharing](https://drive.google.com/file/d/10oyJeBPuYPx3VD_Kg1kL7sgjeh3s9_An/view?usp=sharing)
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18040802)
 * Hi [@ghdunlimited](https://wordpress.org/support/users/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](https://i.imgur.com/Skdog7S.png)
 * Could you please check and see whether the above fits your requirement?
 * Kind Regards,
 * Nithin
 *  Thread Starter [ghdunlimited](https://wordpress.org/support/users/ghdunlimited/)
 * (@ghdunlimited)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18043824)
 * 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](https://wordpress.org/support/users/ghdunlimited/)
 * (@ghdunlimited)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18044031)
 * Never mind. I figured it out. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Forminator Discount Calculation’ is closed to new replies.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

## Tags

 * [calculations](https://wordpress.org/support/topic-tag/calculations/)
 * [discount](https://wordpress.org/support/topic-tag/discount/)

 * 5 replies
 * 3 participants
 * Last reply from: [ghdunlimited](https://wordpress.org/support/users/ghdunlimited/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/forminator-discount-calculation/#post-18044031)
 * Status: resolved