I would like to restrict a single user from purchasing the same ticket more than once. I have already limited the number of tickets per transaction to 1, but this does not stop the same user from buying multiple identical tickets in multiple transactions.
I would still like the user to be able to buy other types of tickets on the same account in the future, but not multiple of a single ticket type.
I just saw this thread on the front page by accident. We wanted to have the same functionality and ended up doing some custom coding.
1. You need to store the ticket the user purchases during the registration process. During the registration process we write the ticket ID the user books to the user’s metadata.
2. Then you hook to “FHEE__ticket_selector_chart_template__do_ticket_inside_row”, which filters the ticket selector, and check there if the current user has already booked that ticket before (which is written to his metadata). If yes, hide the ticket or show a custom message.
Here’s another example which uses the filter @ARAGATO mentioned along with the WP User Integration add-on to pull a registration for the current user on the current ticket ID and it the current user has one, it removes that ticket from the ticket selector.
Thank you guys for all the help! I will try some of these ideas and let you know how it goes!
Viewing 4 reply threads
The support post ‘Limit 1 ticket per event per account’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.