Posted: July 30, 2014 at 3:30 pm
|
Hi there The issue is that I can’t find a way of making the paid registration ticket compulsory – at the moment people can select as many of the individual workshops as they want then progress to payment and book onto the conference (for free) without having to select the registration ticket. Can to please tell me how to resolve this? |
Hi, This tutorial will take care of that for you: https://eventespresso.com/wiki/setup-default-value-1-ticket-selector/ Try adding this to your child theme’s functions.php file or a site specific plugin: function ee_default_ticket_selector_one() { $post = get_the_id(); if( $post == 1680 ) { ?> |
|
|
Hi Lorenzo |
|
Hi, There is no option to make a ticket required at this moment in time. You could however use jQuery to remove the 0 option from the ticket, effectively making it required. Only downside to this is if they have JavaScript turned off, it won’t work. I made it into a small plugin for you here: https://gist.github.com/Apina/de3c5b6f7ebe89fd16cb |
|
Great thanks Dean – which folder does the eeticketremover.php need to be placed in? Just to clarify – you mean that this plugin itself still won’t work if Javascript is turned off? |
|
It’s a plugin, so either zip it and upload like a normal plugin or use FTP to add it to wp-content/plugins. It will need to be activated via the Plugins menu. The plugin uses JavaScript (jQuery is just a fancy type of JavaScript) so yeah, if the user has JavaScript turned off they can still select 0 for the event. And sorry to Lorenzo, I didn’t see he had posted already. His solution via the https://eventespresso.com/wiki/setup-default-value-1-ticket-selector/ is basically the same as mine, and will also not work with JavaScript turned off. To be fair most people do use allow JavaScript nowadays. |
|
Ok that’s great – thanks very much for your help, Dean, and yours too Lorenzo. I’ll give this a go later and will come back with any questions problems. |
|
No problem! |
|
Hi Dean |
Hi, You can now do this as a part of Event Espresso core. 4.3.0 includes ‘required tickets’, meaning you can now select your paid ticket to be required – http://take.ms/xrwy0 Which will result in something like this on the ticket selector – http://take.ms/xb5dg I would recommend disabling the plugin Dean provided and using the feature pictured above (just because it is a part of core) The ticket qty could be due to a Maximum Quantity set within the ticket so check there is no value there when setting the ticket required. |
|
|
Hi Tony |
The support post ‘Event with one paid ticket and multiple workshops’ 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.