I’ve created a custom single_espresso-events.php page and for some reason no matter which event I add a ticket to, the view cart page and registration page is loading the same event. I’ve narrowed the problem down to the hidden input field of tkt-slctr-ticket-id-2447[] and it’s value. How does that field determine it’s value? If I can figure out what php to put in there, I can likely fix my problem.
If you ever have more than a single ticket on an event the above may not work, the value of the above is the ID of the ticket as you’ve found, so if you may more than one you need multiple inputs.
maz-atndz you can get from the event $event->additional_limit();
I recommend you take a look at how the ticket selector generates these inputs, starting with:
The support post ‘Custom Ticket Selector Not Working’ 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.