Support

Home Forums Event Espresso Premium Event with one paid ticket and multiple workshops

Event with one paid ticket and multiple workshops

Posted: July 30, 2014 at 3:30 pm

Viewing 10 reply threads


fifthsense

July 30, 2014 at 3:30 pm

Hi there
We’re using the plugin to take bookings for our annual conference. What we want is to have one registration ticket (paid) that is compulsory to purchase, then individual workshops that guests can choose from (which won’t be chargeable. I’ve set this up at http://www.fifthsense.org.uk/events/fifth-sense-conference-2014/

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?
Thanks


Lorenzo Orlando Caum

  • Support Staff

July 31, 2014 at 2:14 am

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 ) {
 ?>
 
 

Then return to your event page and refresh. Let us know if this helps.

--
Lorenzo


fifthsense

July 31, 2014 at 3:15 am

Hi Lorenzo
Thanks for this. The site-specific plugin – presumably it isn’t going to affect other areas of the site because the only code I’m going to put in it will refer to the Event Espresso plugin? This is a better avenue to go down as the code will not be affected by any theme upgrades etc?
Thanks


Dean

July 31, 2014 at 3:57 am

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


fifthsense

July 31, 2014 at 4:11 am

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?
Thanks


Dean

July 31, 2014 at 4:33 am

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.


fifthsense

July 31, 2014 at 5:43 am

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.
Cheers


Dean

July 31, 2014 at 6:07 am

No problem!


fifthsense

August 11, 2014 at 4:04 am

Hi Dean
Thanks again for the plugin – works great. One question though – how can I change it so people have the option of buying 1 or 2 tickets? At the moment it is fixed to one only. If there’s something fairly simple to tweak in the plugin code then please tell me how and I’ll do it myself.
Many thanks


Tony

  • Support Staff

August 11, 2014 at 5:07 am

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.


fifthsense

August 11, 2014 at 9:13 am

Hi Tony
This is great news, thanks very much for advising me. I’ve disabled Dean’s plugin, amended the maximum quantity and now have this aspect set up the way I want it to.
Thanks for your help.
Duncan

Viewing 10 reply threads

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.

Event Espresso