Support

Home Forums Event Espresso Premium Attending multiple event

Attending multiple event

Posted: July 3, 2013 at 9:04 am


Ofir Avidan

July 3, 2013 at 9:04 am

Hi,
I wonder if you have a solution to the following problem:

I have one event/course with 3 different levels – “Basic” , “Advanced”, “Expert”

The “Expert” include the “Basic” and “Advanced” and it for 6 days
price – £1200

The “Advanced” include the “Basic” and it for 4 days
price – £800

The “Basic” is 2 days
price – £400

This event/course each time can only take 12 attendees
how do i control the days for each level by dates ?

i create one event with 3 different prices

but in the listing i can only see the last price
and only the start date, can i change the price so it will show
“price range: £400 – £ 1200

and dates
Basic 22/7/2013 – 23/07/2013
Advance – 24/07/2013 – 25/07/2013
Expert – 26/07/2013 – 27/07/2013

in the registration it show 26/07/2013 – 27/07/2013
but the problem start when i choose for example the level “basic” how do i show that its only for the first 2 days and so on ?

Thanks,
Ofir


Jonathan Wilson

July 3, 2013 at 1:06 pm

Ofir,

Thanks for posting details so we can better understand your question.

You won’t be able to do what you are wanting with 1 event. You can’t add date limitation to individual ticket types. You will need to create an event for each event date you want.

This is something we are working on making easier in our 4.0 version.


Ofir Avidan

July 4, 2013 at 3:58 pm

OK that good to know, (so you will be able to create multiple events in main event) ? if this is true it can solve everything.

meanwhile i hope you’ll be able to help me to workaround this issue.
First of all , when i created those “levels” I assign different price to each one of them.
in the registration page under Choose an Option: you can see them in the drop down menu, is there a way to have one menu with title “Choose an Option: ” as default so the user will have to choose the right price, otherwise it wont let him to register
(same as registration details box marked as * required)
2nd – if someone made a mistake and register with the wrong level/price/details , there is no back / return button to amend it
Thanks again,
Ofir


Dean

July 5, 2013 at 5:06 am

Hello Ofir,

“is there a way to have one menu with title “Choose an Option: ” as default so the user will have to choose the right price,”

Not currently though you could achieve this with some custom coded jQuery.

With a normal registration the user would just need to press the back button to edit the registration.

If you are using Multiple Event Registration, the user will see an edit cart link to enable them to go back and edit their details.


Ofir Avidan

July 8, 2013 at 11:07 am

Could you please help me with how to achieve the “is there a way to have one menu with title “Choose an Option: ” as default so the user will have to choose the right price,” how to do it with jquery ?
Thanks,

Ofir


Dean

July 9, 2013 at 2:43 am

Hi,

If you are not able to modify the code, I would suggest contacting a developer in respect to this, we have a list here https://eventespresso.com/developers/event-espresso-pros/


Ofir Avidan

July 10, 2013 at 6:30 am

Hi,
Thanks for that ,
i tried to follow the instruction in the link below, but where should i paste the code, and how do i know if i have js turned on or off in the event espresso ?

https://eventespresso.com/topic/force-price-selection-no-default-price/

thanks,

Ofir


Dean

July 10, 2013 at 6:36 am

Hi,

You would need to add that into the registration_page_display.php file as it is the prices you wish to control.

Javascript is turned on in WordPress by default, however you would need to refer to your browser documentation as you may personally not have javascript on.

http://www.enable-javascript.com/


Ofir Avidan

July 10, 2013 at 7:08 am

Thanks,
I feel like i trouble you with my questions, what can i say i am a newbie, i know i need a developer but it will take me some time to get there, and i need a solution urgently so a little bit extra help would be admirable
where in the registration_page_display.php code should i place the jquery so at the end the user will have a default to choose the price, if you’ll send me the working registration_page_display.php file or paste it here, it would help me a lot,

Thanks,
Ofir


Dean

July 10, 2013 at 7:23 am

Hi,

Just add this to the bottom of the registration_page_display.php, after the last ´´

It’s a modified version from that forum thread you linked.


Ofir Avidan

July 10, 2013 at 9:12 am

Thanks,
I’m struggling here ,
i didn’t find the ´´ you are referring –

<?php
}
//End use captcha
?>
<p class=”event_form_submit” id=”event_form_submit-<?php echo $event_id; ?>”>
<input class=”btn_event_form_submit ui-button ui-button-big ui-priority-primary ui-state-default ui-state-hover ui-state-focus ui-corner-all” id=”event_form_field-<?php echo $event_id; ?>” type=”submit” name=”Submit” value=”<?php _e(‘Submit’, ‘event_espresso’); ?>”>
</p>

<?php } ?>

</form>
</div>

<?php
break;

}
//End Switch statement to check the status of the event

if (isset($ee_style[‘event_espresso_form_wrapper_close’])) {
echo $ee_style[‘event_espresso_form_wrapper_close’];
}
?>

<p class=”edit-link-footer”><?php echo espresso_edit_this($event_id) ?></p>
</div>
</div>
</div>

so where do i paste this code ?

jQuery(document).ready(function($) {
//get the event id
var the_event_id = document.URL;
the_event_id = the_event_id.substr(the_event_id.indexOf("?ee=")+4, the_event_id.length-the_event_id.indexOf("?ee=")-4);
//add blank value to the top of the list and make it default.
jQuery("#price_option-" + the_event_id ).prepend("").val('');
//add required class to the options lists to force validation so an item has to be selected.
jQuery("#price_option-" + the_event_id ).addClass('required');

thanks again,

Ofir


Josh

  • Support Staff

July 10, 2013 at 10:00 am

Hi there,

I can suggest an alternate approach that involves placing the code Dean suggests using into its own file.

What you can do is create a new file and name it mycustom.js and upload it to /wp-content/uploads/espresso/.

Then add this to the custom files add-on’s custom_functions.php in the /wp-content/uploads/espresso/ directory:

add_action('wp_enqueue_scripts', 'my_custom_script');

function my_custom_script() {
	global $load_espresso_scripts;

	if ( ! $load_espresso_scripts )
		return;

	wp_enqueue_script('my-custom-script', content_url('/uploads/espresso/mycustom.js'), array('jquery'), '1.0', true);
}

This way the JavaScript is in its own file instead of in a template.

The support post ‘Attending multiple event’ 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