Support

Home Forums Event Espresso Premium Checking ticket options

Checking ticket options

Posted: January 7, 2014 at 6:03 am

Viewing 2 reply threads


smokeyfeet

January 7, 2014 at 6:03 am

Hi, I have a multi-event setup, where one of these events has 2 ticket options (say A and B).
The event allows a group registration with max=2.
At the moment, it would be possible to buy 2xA and 0xB (or the other way around).

The goal is to allow only 1xA and 1xB.

I know this is not officially supported in the current version (I use 3.1.36.1.P).
However, I reckon it shouldn’t be that much difficult to hack this in. Would it be possible with some javascript added?
Could you please point me at the right files to look at and possibly give me a tip on how to achieve this?

Thank you!


Sidney Harrell

January 7, 2014 at 2:14 pm

I would put the script in the shopping_cart.php template, so you can copy it to uploads/espresso/templates and save your modification from getting overwritten on update.
You should be able to put in some jQuery to put a listener on select.price_id so that when it is changed, you can go up to the table.price_list parent, and change all of the children select.price_id to match the one that was changed. Almost like the first example here: http://api.jquery.com/change/ but with a little modification.


smokeyfeet

January 8, 2014 at 4:47 pm

Thanks, Sidney

Viewing 2 reply threads

The support post ‘Checking ticket options’ 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