Support

Home Forums Event Espresso Premium Limit 1 ticket per event per account

Limit 1 ticket per event per account

Posted: April 17, 2019 at 10:50 am


ajspeer

April 17, 2019 at 10:50 am

Hello,

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.

Please help, thanks in advance!

AJ


ARAGATO

April 18, 2019 at 3:56 am

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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  ARAGATO 6 hours, 29 minutes ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!