Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

How to Setup Early Bird Pricing with Gravity Forms

Discount your Gravity Form products if your form is completed before a certain date or specific amount of time before today's date.

Last updated March 1, 2021 | Written by Jordan Smith 13 Comments

View Demo

This article requires the GP Conditional Pricing perk. Buy Gravity Perks today to get this perk plus 42 other premium Gravity Forms plugins!

  • View the Plugin
  • Buy Gravity Perks

When promoting upcoming events, one of the best ways to encourage early ticket sales is to implement early bird pricing. This rewards attendees for buying their ticket now versus waiting to purchase later.

In this tutorial, we will use two of our Perks, GP Conditional Logic Dates and GP Conditional Pricing, to setup early bird pricing with Gravity Forms.

Our demo form will include a Date field and a product field. The Date field will dynamically populate the current date which will then be used to dynamically determine the base price per ticket.

Ready to get started? Here we go!

Steps

  1. Add a Date field
  2. Add a Product field
  3. Create Pricing Rules Based on Current Date

1. Add a Date field

First, we’ll add a Date field to our form. We will label this field “Today’s Date”. This field will be used to determine the price per ticket.

gravity-forms-early-bird-todays-date

Once created, Visit the “Advanced” tab of the field and enter the current date merge tag {date_mdy} in the “Default Value” setting. This merge tag will generate the current date and set it as the value of the date field.

gf-early-bird-current-date-merge-tag

Note that we have this field visible for demonstration purposes only. Since the user should not be able to select the date, we would hide this field in a live form by adding the gf_invisible ready class to the field.

To do this, visit the “Appearance” tab of your field then add gf_invisible to the “Custom CSS Class” setting.

gf-early-bird-gf-invisible

2. Add a Product field

Next, we’ll add a product field to the form. We will call this field “Ticket Price”. Set a base product cost of $25.00.

gf-early-bird-product

3. Create Pricing Rules Based on Current Date (with GP Conditional Pricing).

Finally, we will configure the conditional pricing rules for the form. GP Conditional Pricing combined with GP Conditional Logic Dates will allow us to modify the “Ticket Price” based on the “Current Date.”

  • Install and activate GP Conditional Pricing.
  • Install and activate GP Conditional Logic Dates.
  • Select “Conditional Pricing” from the Form Settings menu.
  • Select the Ticket Price field from the “Select a Product” drop down.
  • Create your first pricing rule.
  • Click the “Add New Pricing Level” button to create additional pricing rules for this product.

Here is how we’ve configured our pricing rules for the demo. Each pricing level specifies the conditions that should be met for that pricing level to apply. The product price is automatically adjusted whenever a new pricing level’s conditions are met.

gf-early-bird-conditional-pricingConditional Pricing Level Rules - Click to Enlarge

You’re all set, now go sell some tickets!

Want to offer a recurring discount? GP Conditional Logic Dates supports wildcard dates.

What questions do you still have?

Do you still have any questions about how to get this setup? We’d love to know what they are. Let us know!

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks; a suite of 41+ essential add-ons for Gravity Forms with support you can count on.

  • View All Perks
  • Buy Gravity Perks

Filed Under: How To, Tutorials date field gp conditional logic dates gp conditional pricing gravity perks pricing fields

Comments

  1. wright rogers says

    October 26, 2020 at 4:02 pm

    hi there! i saw here https://gravitywiz.com/setup-early-bird-pricing-gravity-forms#comment-357070 that you said we can configure price for each radio button , but i didnt find that option, i mean i only can choose product field but not option or checkbox price. What i’ve done is select the product field mapped to my radio button and then added a conditional but i dosent work, can you guide me how to do that please? thanks

    Reply
  2. Piero says

    May 26, 2020 at 11:50 am

    Hello, I have to create a module where there are two different dates to provide a service, therefore a start date and time and an end date and time. Depending on the duration of the service in terms of hours / days / weeks or months, a service price will be charged. Can I do this with this module? So 2 different calendars with start and end date that will determine the price of the service product. Thanks

    Reply
  3. Lauren says

    June 26, 2019 at 9:46 am

    Hi there! Would this work if I have multiple prices? So for my current product (I don’t have Gravity Perks yet), I have radio buttons with 4 different prices. I’d like to set early bird pricing for all 4 options.

    Reply
    • David Smith says

      June 26, 2019 at 10:10 am

      Yup! Conditional Pricing treats each choice in a Radio Button Product field as a separate product price that can be configured independently.

  4. Tere says

    December 9, 2018 at 11:18 am

    Can you set a price not by date, but by the first X purchased, I.e. the first 100 are at $Y and after that the price is $Z, independent of what date it is.

    Reply
    • David Smith says

      December 10, 2018 at 8:52 am

      Hi Tere, we don’t have a solution for this one. Something we’d love to figure out for a future version of this perk.

  5. Mitch Rosefelt says

    February 5, 2018 at 11:16 pm

    Hi: Thanks for this useful perk! Just to double up on the usefulness of the date field in this situation, you can also put corresponding html pricing fields on the form and use conditional logic to hide/show. For example: If we have Earlybird Price thru May 1, we add 2 HTML Fields to the form (perhaps above the credit card field). One displays Earlybird Price before May 2, the other shows Full Price after May 1.

    Reply
  6. Jonathan says

    December 22, 2017 at 5:12 pm

    Hi !! Every perks are awesome!

    I just have a concern right now ! Is there any way to duplicate or copy a pricing level in conditional pricing ? I mean, any way !!

    Cause I only have 5 products but with different option! With those option, there’s 240 different prices! It would be more than perfect if I was able to duplicate 240X the first pricing level and after just make the little ajustement !!

    Thanks !!! John

    Reply
    • David Smith says

      December 22, 2017 at 7:14 pm

      Hi John,

      We just added a new “hidden” feature for GF Conditional Pricing that will allow you to do this.

      Add this filter to your themes functions.php file. It will enable an import button (screenshot to the GF Conditional Pricing page.

      add_filter( "gpcp_enable_importer", "_return_true" );

      The rest of the process is fairly straightforward and there is a sample file that is available to download before importing.

      Drop us a line via support if you have any issues. :)

  7. Markus says

    October 4, 2017 at 3:58 pm

    Hi, can the conditional pricing be used to display a higher price for same day services and lower prices for services booked further in advance?

    Reply
    • David Smith says

      October 28, 2017 at 9:32 am

      Yup!

  8. Stella says

    November 28, 2016 at 3:50 am

    Hi! Can GP create a conditional pricing based on quantity purchased? For example, we are holding a sale. One item sells for $10, but two will sell for $15 (instead of $20). Buy 3 for $20.

    In essence, it’s $10 for one, and each additional item is +$5.

    Reply
    • David Smith says

      November 28, 2016 at 6:55 am

      Hi Stella, this is possible but you’d have to configure it a little differently than you’re thinking. You can change the price per item based on the quantity being ordered so you’ll the price per item for 1 would be $10, the price per item for 2 would be $7.50 (2 x 7.50 = 15), and the price per item for 3 items would be $6.667 (that way it’ll round up to $20; 3 x 6.6667 = 20).

Leave a Reply Cancel reply

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

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

Recent Posts

  • Spotlight: Gravity Forms Media Library 🤝 Advanced Custom Fields
  • How ANM Powers Internal Finances with GP Unique ID
  • New Release: Gravity Forms QR Code Beta 1
  • How Farbie.at uses GP Inventory to manage over one thousand parties a year
  • Spotlight: Building a Loan Calculator with GP Advanced Calculations

Categories

  • How To (73)
  • News (25)
  • Plugins (19)
  • Releases (13)
  • Resource (3)
  • Snippets (50)
  • Spotlights (14)
  • Tutorials (57)
  • Uncategorized (5)
  • Updates (152)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2022 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Terms & Conditions of Use
  • Privacy Policy
  • Cookies Policy

Get access to hundreds of Gravity Forms plugins for free!

Enter your email and receive a list of our most popular free snippets and plugins for Gravity Forms.

  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account