Posted: November 17, 2020 at 7:50 pm
|
Hi, I want per logged user can only purchase one ticket per event. In the event list, once they have bought the ticket, they cannot buy any in the future. Currently in my event list, I can still buy another ticket once I have bought it. How can I do that? |
Hi there, If you are using the WP User Integration add-on you can use a snippet like this: https://gist.github.com/Pebblo/10669adfeea322ade3d96a38857fb46b That removes the ticket selector for an event if the user has already registered onto it leaving a message stating they have a registration already. You can add that a custom functions plugin on the site and we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Hi Tony, Thanks for your reply. I add the snippet to the child theme’s function.php. Please check the link below. However, event “student02” has been approved for this event. I can still see the selector in frontend. Can you please help check anything I did wrong? |
Did you add that registration with the WP User integration add-on enabled? If so, were you logged into the account and used the same details as the WP User account you were logged into to register onto the event? |
|
|
Hi Tony, Ok, now I know what ticket selector is, and the ticket selector is removed from the event when I use this snippet. Let me address my original requirement more specifically. Therefore, what I need is, a course can have an event related to it, user can enroll the particular datetime they want. However, the frontend needs to show what datetimes they have enrolled. How can I do that? |
The only output we have to show users their registrations is the ESPRESSO_MY_EVENTS shortcode with the WP User integration add-on, see here: https://eventespresso.com/wiki/wp-user-integration/#ee4-my-events Is that what you are looking for? |
|
The support post ‘How to limit user can only purchase one ticket per event at all time?’ 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.