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.

Limit entries after Paypal payment received

  1. PCN
    Member

    If you have a limited number of products, or event tickets it's great to use the limit number of entries in the form to restrict how many can be purchased, the only problem I have found is that the limit works on the submission of the form and not approval of payment, so some people could be prevented from purchasing those final products/tickets if others abandon the sales cycle.

    So an option to limit the number of approved entries would be good.

    Posted 13 years ago on Friday August 12, 2011 | Permalink
  2. AtariPixel
    Member

    I'm running into the same issue. Another problem I am having is determining the quantity that is sold. Since people can purchase more than 1 ticket per transaction and there are only 200 tix, I need to keep a running count of qty and then disable the form once that qty is reached.

    Other issues could be, there are 3 tix left and someone tries to order 4, they will be rejected if the logic is in place to prevent more than 200 tix, but they need to know there are 4 tix left, just sayin.

    Posted 13 years ago on Wednesday August 17, 2011 | Permalink
  3. I could use the same functionality regarding tickets. As it is now, it's the number of people purchasing that counts and not how many items, they purchase.

    For example, I have 200 items and sets the number of entries to 200. If 100 people buy 3 items each, the system would not display the validation message but my items would be long gone.

    Posted 13 years ago on Thursday August 25, 2011 | Permalink
  4. Ric
    Member

    I'd be very interested to know about this too. Any chance of some feedback Mr RocketGenius?

    If there were a field for "quantity" and some way to link that to the number of allowed form submissions, that should work.

    Example...

    An event is setup with 100 tickets available. It has a form attached limited to 100 submissions. The (new) "quantity" field is also marked as having 100 tickets.

    If an individual opts for 3 tickets and submits the form a single time, the form count will reduce to 99 and the quantity will reduce to 97. When either reaches zero the form is no longer available.

    As has been mentioned previously, there should also be an option to only have the submission and quantity counts adjusted after confirmation of payment.

    Posted 13 years ago on Saturday November 12, 2011 | Permalink
  5. I know this is in the feature request forum, but Ric I think what you want to do is already possible. You'd have to extend this: http://www.gravityhelp.com/forums/topic/display-number-of-form-entries-left-per-form#post-36866 from your other topic, and instead of counting form entries, actually query the number of 'items' submitted (sold) for a particular field. Then, using the same gform_pre_render hook, you can change the number of remaining 'items' available (modify the $form['limitEntriesCount']). I think what you want to do is entirely possible with a little work.

    Regarding integrating PayPal, I'm not sure how involved that would be. You'd have to combine the above and check to see that the transaction status is complete. I think that's possible too.

    Posted 13 years ago on Saturday November 12, 2011 | Permalink