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.

Creating a front end form for users to post event and set ticket price

  1. Hello, I hope you can help me figure out if this is feasible.
    I am creating a member site where Members login and fill out forms to post events, news, profiles etc. The form submissions create posts. All that works fine.
    Now, I would like the member creating the event post to set a ticket price. When the viewer of the post sees the event, they enter how many tickets they want, see total, and go to Paypal to purchase. I see a number of plugins that do this kind of thing, but I love Gravity Forms and want to create my own solution.
    Thanks for any feedback! Nancy

    Posted 12 years ago on Wednesday October 24, 2012 | Permalink
  2. David Peralty

    So here's how I would do this. I would make sure that my form collecting data also included what they wanted the price to be. I would store this in a custom field. I would create a form that was just a simple product without a value. I would set it to be able to be dynamically populated. I would also add a total field and set-it up with Paypal.

    I would write PHP to grab the custom field value from the post and use a function to pre-populate the value of the product.
    gform_pre_render - http://www.gravityhelp.com/documentation/page/Gform_pre_render

    Then if you add that form to part of your single.php or post-type.php template for displaying those events or whatnot, you should be able to have a single form in Gravity Forms collect payments for multiple events of different prices.

    Posted 12 years ago on Wednesday October 24, 2012 | Permalink
  3. David, You are amazing to get back to me so quickly! I really appreciate it. I will follow your directions and see if I can figure it out.

    Thanks so much!!!
    Nancy

    Posted 12 years ago on Wednesday October 24, 2012 | Permalink
  4. Hi David, I haven't been successful at writing the function. I know how to create the custom fields as you recommend, and otherwise set up the form. If you know of anyone who would do this for a fee, I'd be interested.
    Thank you!
    Nancy
    nancy@millbrookcreative.com

    Posted 12 years ago on Wednesday October 31, 2012 | Permalink
  5. Nancy, you can post this as a job on our job board if you like. Just include all the information from your first request and your contact information from your last post.

    http://www.gravityhelp.com/forums/forum/job-board

    Include a reference to this topic if you like.

    Posted 12 years ago on Sunday November 4, 2012 | Permalink

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