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.

Only allow one of each item to be purchased

  1. cthorpe
    Member

    I have successfully set up the Paypal addon and everything seems to be working in the PayPal sandbox. The issue I am having is that the items I am selling are unique, so I need a way to prevent anyone else from purchasing an item once it has been bought.

    Ideally it would replace the form with text that states that the item has sold and my standard GF Aweber form to get on my mailing list to be notified if the item becomes available again.

    Any suggestions?

    Thanks,

    Carl

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  2. Here's a discussion of something similar:
    http://www.gravityhelp.com/forums/topic/feature-request-remove-from-checklist-on-submission#post-33547

    I've been thinking about situations like this which are like inventory. You have only one of something to sell, and once it's gone, it should not appear for sale any more. Could be a time slot, or a unique product. In each case, it's unique and should not be shown on the front end, once it's gone.

    There should be a way to keep a list of items, and their status (available or unavailable) then use that list to populate a drop down or check boxes or radio buttons. You'd have to change the availability after a purchase, so it does not appear next time.

    You'd need to use the gform_pre_render hook to display your available items, then the gform_post_submission hook to change the status of the item to unavailable. It would be a customization but I think it should be possible, without any manual intervention to mark items unavailable.

    I know that's not a solution, but just thinking out loud.

    Posted 13 years ago on Saturday September 24, 2011 | Permalink