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.

Support for coupon code (for selling tickets)

  1. Hi Carl,

    I am trying to sell tickets for a conference. And playing with the pricing fields is a nice game :-)

    In my scenario there is 2 ticket prices and 1 redeem option (It's free for guests)

    I've made a conditional logic on a product field. If someone choose the redeem option, a "redeem code" field appears.

    And now I am searching a way to match the content of this field towards a list of values (couponcode#1, couponcode#2, couponcode#3, ...) but no clue on how to handle it.

    If the matching is enabled, at form submission, the entry would be validated. If not then an alert message is displayed to the user and the form wait for another input (or other product choice).

    I've tried to find similar threads on the forum. I've just found the request of coupon code integrated with Paypal. http://www.gravityhelp.com/forums/topic/paypal-discount-code-option

    Is there a way to handle that (and maybe some entries from similar requests).

    Regards

    Posted 14 years ago on Friday April 1, 2011 | Permalink
  2. This can only be done as a customization. There is a hook you can use to create custom validation for a field, it is called gform_validation. You would have to write custom code to read the field value, compare it against wherever you are storing your list, and then return if it is valid or not.

    Documentation for the gform_validation field is here:

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

    You would need to know how to write PHP and use WordPress hooks/filters in order to implement something like this. If you wanted to hire a developer to assist you with this I could recommend some WordPress consultants with Gravity Forms customization experience.

    Posted 14 years ago on Friday April 1, 2011 | Permalink
  3. Carl-

    Would you be able to recommend someone you could implement this functionality for us.

    We are looking for the same feature FrancoisL's is requesting.

    Thanks!

    Posted 14 years ago on Saturday June 18, 2011 | Permalink
  4. A developer that I know has implemented coupon code type functionality is David Smith, who also works for us but does freelance work. His contact information is below, however he is currently out of the country and his time is limited until the beginning of July.

    Ounce of Talent
    http://www.ounceoftalent.com

    Posted 14 years ago on Saturday June 18, 2011 | Permalink
  5. Great thanks Carl!

    Posted 14 years ago on Monday June 20, 2011 | Permalink