Issuing ticket numbers by request or autogenerated numbers for a raffle

By: John Buford | Asked: 07/28/2024
ForumsCategory: How-toIssuing ticket numbers by request or autogenerated numbers for a raffle
John Buford asked 5 months ago
i am selling tickets for a raffle as a fundraiser for a non-profit and I want to either allow users to request a set of ticket numbers that have not yet been sold, or let the form assign them numbers that haven't been issued yet. If the user asks for ticket with numbers that have already been sold, that would not be allowed. I would create a form that asks the user how many tickets they want, and then has a radio button to either auto-assign ticket numbers or let the user request specific ticket numbers (e.g., their "lucky numbers"). If the user requests specific ticket numbers, I would have them enter a starting and ending number.  There would be a view available showing the list of ticket numbers already purchased to let people know what's already sold.  But inevitably, someone will try to buy tickets that have already been sold.  How would I go about checking to make sure the numbers requested were still available?  I would want the form to pop up with an error message saying those tickets have already been sold, please check the view and try again. Does anyone have a suggested approach to accomplish this?
John Buford replied 5 months ago

<p>It looks like if I use the "Unique" checkbox for single ticket numbers, it will have this effect automatically. if a person only wants 1 ticket, But for a range, if someone want the first ticket to be number 20 and the last to be 25, and someone else wants tickets 23-24, it would not know to block that.  So to make it work automatically, people who want specific numbers have to purchase them one ticket at a time.</p>

Rob LeVineRob LeVine replied 5 months ago

I sent you a message about this.

1 Answers
Victor Font answered 5 months ago
You should be able to reserve a block of numbers. I think you should consider having a developer take a look at your design logic.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right