Posted: December 17, 2018 at 11:18 pm
|
Hi there, I have a question. I have a event with 2 types of ticket: -For the GOLD ticket, i want to set subscriber only can buy 1 ticket per event (and cannot add more ticket on event cart). Is there any solution for this problem? |
Hi, May I ask where was the gold ticket’s limit set to 1? Was that within the ticket’s advanced settings? |
|
|
-Ya, Event > Available tickets > Gold Ticket’s > Advanced setting > Maximum Quantity > 1. |
I may not fully understand what you’re asking, so I’ll make an attempt to make sure we’re on the same page. So for example, if they purchase a GOLD ticket, are they not allowed to purchase any other ticket types for that event? |
|
|
Hi Josh, Sorry for the miss-understanding, what I meant to say is we have set subscriber role limited to one GOLD ticket per event, which works fine. We do have multiple events cart. The problem is once they add to cart and return to the event page, they are able to add another one GOLD ticket to the event. This seems to be like a loop hole to the system. Is there a way around this? |
It’s not really a loophole as the system was not designed to police registration quantities based on roles, it can limit tickets for users that have specific capabilities but it doesn’t check if a user has already purchased the ticket as that’s not the intention of the add-on. However, pretty much everything within Event Espresso is filterable so you can add your own custom function to do what you need, for example: https://gist.github.com/Pebblo/eabb317ca126f5b298eca78755f2cbd1 That snippet checks if the user currently logged in has purchased the ticket that is loading before, if they have it removes the ticket from view in the ticket selector. Note that function doesn’t only apply specifically to subscribers but to all users however if you are familiar with PHP you could adapt that to suit your needs. |
|
|
Hi Tony, What if i want to limit only 1 GOLD ticket allowed add to cart per event? if i set “Maximum number of tickets allowed per order for this event” to 1, other ticket will be affected. |
That’s a bug and have a ticket to investigate this further, there’s no way to prevent that currently other than removing the qty fields from the event cart for the time being. |
|
|
Is it possible to hide ticket selector but display “view event cart” button if the ticket already on event cart? |
Not currently no, the ‘View event cart’ button is part of the ticket selector and we don’t have an option to remove all of the other elements other than the submit at this time. |
|
|
Is it possible to display some text (under ticket selector) after user click “add to event cart” button? example: “This ticket already in event cart.” |
Yes its possible but we don’t have any examples of doing so, you’ll need some custom development to add that functionality to EE. |
|
|
Have you provide service to do so? If yes, how can i contact your developer and how much the cost? |
Hi there, We don’t provide customizations at this time, we recommend you reach out to the developers available through codeable, there’s a link in the sidebar of this thread -> |
|
The support post ‘Only 1 ticket per event allowed for specific role’ 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.