Support

Home Forums Event Espresso Premium Limit tickets to two per logged in user per event.

Limit tickets to two per logged in user per event.

Posted: October 2, 2023 at 9:33 am

Viewing 1 reply thread


roodude

October 2, 2023 at 9:33 am

Is there a way with the User addon to limit the total number of tickets to two per user? We have a single event and datetime and one of the ticket types is Member’s Only, which is free, but we’re having users register multiple times and each time registering two more people. We want to only allow each user two of these Members Only (free) tickets total to the event, even if they try to register again later. If they want to buy other tickets, that is fine.

Is this possible?


Tony

  • Support Staff

October 2, 2023 at 11:01 am

Hi there,

What you are requesting is possible, however, it’s not something that is built into the add-on so you will need custom development for this.

I have an example that should get you (or a developer) started in the right direction for this here:

https://gist.github.com/Pebblo/eabb317ca126f5b298eca78755f2cbd1

That snippet simply removes the ticket from the ticket selector if the current user has a registration on that ticket. A developer can expand on that for what you are requesting above using the Qty of tickets purchased and the ticket type.

Viewing 1 reply thread

The support post ‘Limit tickets to two per logged in user per event.’ 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.

Event Espresso