How to Apply Discounts with Gravity Forms

Flexible, conditional, and easy discounts for Gravity Forms.

This article requires the GP eCommerce Fields perk.

Buy Gravity Perks to get this perk plus 47 other premium Gravity Forms plugins!

View Plugin Buy Gravity Perks

Looking for a way to apply flexible discounts to your Gravity Forms submissions? This resource is for you. With GF eCommerce Fields’ Discount field, adding discounts couldn’t be easier.

Do you have some practical examples?

Yup! Try these on for size.

  • Apply 10% discount if user opts to pay for a year of your service in advance.
  • Apply a $10 discount to a specific product on your form.
  • Offer a 25% discount on the order if the user is a registered member of your site.

The possibilities abound!

Overview

  1. Overview
  2. Step 1 Install & Activate GF eCommerce Fields
  3. Step 2 Add a Discount Field to Your Form
  4. Step 3 Configure the Discount Amount
  5. Preview the Form
  6. Bonus!
    1. Discounts based on the Total
    2. Date or Time-sensitive Discounts
    3. Bulk Pricing Discounts
    4. Discounts based on number of checkboxes checked
    5. Creating Coupons

Step 1 Install & Activate GF eCommerce Fields

Let’s get started by installing and activating the GF eCommerce Fields plugin.

Step 2 Add a Discount Field to Your Form

Next, let’s add a Discount field to your form. You will find the Discount field button under the “Pricing Fields” field group on the right side of the form editor.


Multiple Discount Fields
You can add as many Discount fields as you require. Use Gravity Forms’ powerful conditional logic to conditionally apply the discount to the order. Discount fields hidden via conditional logic will not be applied to the order.

Step 3 Configure the Discount Amount

Now we’re ready to specify how much the discount should be. Discount fields accept a flat amount (e.g. $10.00) or a percentage (e.g. 10%).


Product-specific Discounts
If you would like to only apply the discount to specific products or exclude specific products from being included in the discounted amount, you can specify the products to include/exclude via the “Applicable Products” section.

Preview the Form

That’s it! When you preview your form, you’ll see percentage-based Discount fields automatically adjust and flat-rate Discount fields just look darn good.


Bonus!

You can do some really cool stuff with Discount fields. Here are a few bonus tips to do even more with Gravity Forms discounts. Some of these tips take advantage of other Gravity Perks – remember that you can get access to every perk in a single easy subscription, opening up a whole world of Gravity Forms discount functionality!

Discounts based on the Total

Want to apply a 10% discount on orders of $100 dollars? Here’s a quick crash course.

Add a Number field.
Enable calculations and include {subtotal} merge tag in the formula.
Base Discount conditional logic on the value of the Number field.

You can take this further, too. Say you want to offer more substantial discounts for higher orders – e.g. 10% off for orders over $100, but 15% off for orders over $150. You can easily achieve this by

  • Creating a Number field
  • Enable calculations, and set formula to {subtotal}
  • Create two Discount fields and show/hide appropriate discount based on the total

Date or Time-sensitive Discounts

Want to provide a discount if your customers register before a certain date? GF eCommerce Fields works with GF Conditional Logic Dates to allow date/time-sensitive discounts.

Follow these instructions to setup conditional logic based on the current date.
Apply that condition to your Discount field.

Bulk Pricing Discounts

Plenty of retailers offer discounts for buying products in bulk – it’s a great way to encourage and reward customers for purchasing greater numbers of select items.

With the GP Conditional Pricing Perk, creating pricing rules based on quantity is a cinch – you simply add conditional fields within the individual Product field and voila – 5 items gets you 10% off, and 10 items gets you 15% off!

Don’t believe what a powerful incentive bulk pricing is? With a Gravity Perks Pro license, you get access to all 36+ Gravity Perks for a single low price – saving you over $15100. All the Gravity Forms functionality you could ever need for the price of just a couple of plugins. Who could resist?

Discounts based on number of checkboxes checked

Checkboxes can be used for a whole range of purposes, and integrate really well with transactions – you might want to offer discounts if a customer meets a certain number of conditions, or opts out of a certain number of default add-ons. Thankfully we’ve got a <a href=”https://gist.github.com/spivurno/a14ef4a18f57d0c67811e1b4d8791781?utm_source=Gravity Wiz-blog&utm_medium=blog-post&utm_campaign=apply-discounts-gravity-forms>handy snippet that lets you capture the number of checkboxes in a Number field on the form. You can then use conditional logic on the discount field to show or hide a discount based on that number!

Creating Coupons

There’s something great about coupons – a sense of tactile feedback for the user that, by inputting the discount code to a coupon field, they’ve gotten themselves the savings. But the promise of a coupon is also a powerful incentive for submitting a form – e.g., “sign up and get 10% off your first purchase”.

You can therefore tie these two hooks together by dynamically creating new coupon codes with Gravity Forms which can be provided to the user later for use on a subsequent form – and it just so happens we’ve created a helpful guide to let you do just that!

Generate scannable coupon codes
And scan them directly into your order form! Gravity Forms QR Code lets you generate QR codes from Gravity Forms field values, or scan QR codes to insert values into Gravity Forms fields. Learn more about Gravity Forms QR Code.

Comments

  1. Dave Wooldridge
    Dave Wooldridge December 13, 2024 at 6:26 pm

    I sell products, everything is working well except I need to have the total price reflect an input of the deposit amount. i/e $1000, This needs to be shown on the screen and the pdf.

    Reply
  2. Dawn Anderson
    Dawn Anderson August 27, 2024 at 2:31 pm

    This is going to sound weird but here’s my scenario. I am building a tuition payment form. New students to the school get a $100 credit on their account. If they pay in full which is $20k+ the coupon or discount isn’t an issue. Or if they do a one time payment it isn’t an issue.

    It is when they use monthly or quarterly payments. I don’t want to discount their reoccurring payments by $100 each time. Is there some kind of conditional logic for coupons? For example, if monthly is selected discount monthly payment by $10 or quarterly $25?

    Reply
  3. Trevor A
    Trevor A March 25, 2024 at 8:37 pm

    Hi, 1- Can this coupon plugin limit user entry to 1 or 2 uses per user only? 2- Can it be limited to a total number of uses site wide as well?

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff March 26, 2024 at 4:58 am

      Hi Trevor,

      The Discount field on its own doesn’t have the capability to limit the number of times a code is used. However, you could use our GP Limit Submissions Perk to limit how many times a code is used.

      Best,

  4. Casey Haley
    Casey Haley December 13, 2023 at 7:39 pm

    I have a situation where I’m using a Nested form to collect Applicant Information for Seminar signups. I currently have a radio button field (option value=Price) and a single product set to calculation (applicants:count * Product:value),

    I’d like a checkbox on each Applicant (nested form) that applies a 10% discount for their registration fee. Can you see a way to make that happen?

    Reply
  5. Anchal Garg
    Anchal Garg November 20, 2023 at 10:02 am

    Hi, can I create a discount coupon for bundled pricing. Buy 3 Get 1 Free, i.e. When a user buys any 4 products, he gets a discount equal to the price of the lowest-priced product in the bundle.

    Reply
  6. Jen
    Jen March 13, 2021 at 9:48 am

    How would I apply discounted pricing for signing up multiple people? For example, after paying regular price for 2 people, the 3rd gets a $10 discount, the 4th an additional $10 discount and so on? (Example: Price per unit for 2 people is $50, the 3rd pays $40, the 4th pays $30.)

    Reply
    1. Samuel Bassah
      Samuel Bassah Staff March 15, 2021 at 8:40 am

      Hi Jen,

      I’m not sure if this setup will be possible with just the Discount field. If you have a Gravity Perks license, you can get in touch via our support form with an export of the form, so we take a closer look at your setup and see if what you want to achieve is possible.

      Best,

  7. Cassi
    Cassi January 22, 2021 at 12:05 pm

    I’m trying to find a way to generate a large list of potential coupon codes that can be redeemed on my form. GF’s coupon add-on only allows for a single coupon code to be created at a time (at least as far as I can tell). Do you have functionality to generate a list of coupon codes? Thanks!

    Reply
  8. WeiSheng
    WeiSheng April 22, 2020 at 4:20 pm

    I have added discount onto the form. When I preview GF, it appears. When I put it into woocommerce and add to cart, it does not work. What went wrong?

    Reply
    1. Ryan Donovan
      Ryan Donovan April 22, 2020 at 5:21 pm

      Hello WeiSheng, This one is hard to determine without seeing the actual setup of the form. To use this snippet you need the eCommerce Perk. If you have a Gravity Perks license could you please drop us a line and send us your form? Thanks!

  9. Jade
    Jade February 20, 2020 at 12:38 pm

    Hey

    My client needs to have $5 added for each item purchased over a quantity of 1. But I can’t seem to achieve this in regular gravity forms. Would this perk or another be able to help me do this?

    Reply
    1. Ryan Donovan
      Ryan Donovan February 20, 2020 at 1:59 pm

      Hello Jade,

      This is an excellent question. You can accomplish this by either using conditional logic to show/hide the 5 dollar product field depending on the users quantity selection (you would need to use a number field that uses the quantity merge tag to enable conditional logic) or you could use our Conditional Pricing perk to streamline the process. :)

  10. Chris
    Chris January 10, 2020 at 10:20 am

    When a discount applies to a specific product (instead of the entire form), is there any change to how the product field (specifically the pricing) is displayed?

    What I would like is a way to display the “normal price” crossed out, and then the new discounted price next to it.

    Reply
    1. David Smith
      David Smith Staff January 10, 2020 at 11:23 am

      Such a cool idea but it not currently supported. It would just show the Discount field wherever it appears on the form and there would be no visible change to the Product price.

  11. Michael
    Michael December 19, 2019 at 12:37 pm

    We have 3 products and two price points ($39.95 and $49.95) and want to offer a $10 discount for buying 2 and a $15 discount for buying three. Can I create a discount based on the total price? IF total is between $79 to $90, give $10 discount; IF total is greater than $90 give $15 discount. Exact would also work: IF total = $79.90 or $89.90, subtract $10; IF total = 129.85, subtract $15.

    And can I do this with the standard Discounts based on the Pricing, or would I require use of a snippet?

    Reply
    1. David Smith
      David Smith Staff December 19, 2019 at 8:47 pm

      Hi Michael, if you create a Number field, enable calculations on this field, and set the formula to the {subtotal}, you will have an easy way to do total-based conditions. You could then create two Discount fields and show/hide the appropriate discount based on the total. No snippet required. 🙂

    1. David Smith
      David Smith Staff July 11, 2019 at 7:35 am

      We have a snippet that will let you capture the number of checkboxes checked in a Number field on the form. You can then use use conditional logic on the Discount field to show or hide based on that number.

  12. Kev
    Kev March 5, 2019 at 10:23 am

    Hi, can you confirm that the discount can be automatically applied if the number entered into a Single-Product’s qty field is above a certain amount the conditional logic will show the discount and adjust the total?

    e.g. if customer selects upto ten of one $10 item, price = $10 each but if the customer selects over ten of same item price = $9 each

    Thanks.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

Grab a bundle of free Gravity Forms plugins

Enter your email and receive our most popular free plugins and snippets, plus access to hundreds of others.

This field is for validation purposes and should be left unchanged.