PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Date dependant pricing

  1. Anonymous
    Unregistered

    Our client wishes to charge a different price for their course based on how close the book before the course start date.
    They have three pricing options:
    1. Early = 61+ days before course start date
    2. Standard = Between 31 days and 60 days before the training course start date
    3. Late - 30 days or less before the training course start date

    There are several course dates across the year and each course runs for 3 days at a time.

    How is it possible to set this up so that when a student registers and selects the course they want to attend the form displays the correct pricing?

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  2. You will need to use the gform_pre_render filter to change the pricing of the product before the form is shown, based on the date the form is loaded on screen.

    http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Your function will need to see how many days before the start of the course and set the pricing accordingly before the form is shown.

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  3. Anonymous
    Unregistered

    That sounds like it could do the trick, will investigate and get back to you if we have any further questions.
    Thanks for such a quick response!

    Posted 11 years ago on Thursday November 29, 2012 | Permalink
  4. You're welcome. Let us know if you need additional assistance.

    Posted 11 years ago on Saturday December 1, 2012 | Permalink
  5. Hey pixelperfection- I have the EXACT same requirement as you do for gravity forms- late/early registration changes the price of a registration. looks like the pre_render filter will work great. I'd like to save myself some time- do you happen to have the code you used to create this? I'd love to get a copy.

    Thanks!

    Posted 11 years ago on Monday June 24, 2013 | Permalink
  6. Perhaps this might help you out in the meantime:
    http://gravitywiz.com/use-gravity-forms-conditional-logic-with-dates/

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  7. Excellent Alternative. I'll see how I can make the concept fit!

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  8. David Peralty

    Let us know how it goes. All my best!

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.