Support

Home Forums Multiple Event Registration Add-on Attendee Info in Shopping Cart

Attendee Info in Shopping Cart

Posted: August 5, 2013 at 3:15 pm

Viewing 4 reply threads


Gary Levine

August 5, 2013 at 3:15 pm

Hi again,

We got the shopping cart working now, but we were wondering if there’s a way to adjust the attendee info as you add it.

If you start here (http://yourwsidraft2.com/dctrails/events/?regevent_action=register&event_id=3705) and go through the registration process and choose multiple types of tickets, it asks for multiple attendee information. Is it possible to just gather the name/email/party name/pickup location for one person, and not try to gather it for the extra ticket types. Currently, there are a lot of unnecessary fields.

Thanks!


Garth

  • Support Staff

August 5, 2013 at 4:06 pm

Hi Gary,

How are you today?

In the Event Options, turn off requiring additional registration information for the additional attendees (take a look at: https://eventespresso.com/wiki/create-a-new-event/ additional attendee registration info). That will allow people to register without require the info for the additional attendees (basically purchasing multiple tickets).


Gary Levine

August 6, 2013 at 7:43 am

Hi there,

That’s actually why I’m confused. As you can see in the screenshot, I have “Additional Attendee Registration Info?” set to “No info required” as you can see in the screenshot.

http://yourwsidraft2.com/dctrails/attendee.jpg

It’s still asking for info for each type of ticket, though. We want to get rid of that because it’s not necessary, and makes the checkout process more difficult and time consuming than it needs to be for our customers.

If you could let me know how to get rid of those extra fields, so it only asks for the info for one price type, that would be great.

Thanks!


Josh

  • Support Staff

August 6, 2013 at 1:19 pm

Hi Gary,

That’s correct, it still will display a registration form for each ticket type on the multi-reg-page. There are ways to make it so the fields from the first form get copied over to the other forms.

I put together some example jQuery code that’s based on how you’re trying to use the multi-checkout. It can be used to copy the entries for first name, last name, and email to the other fields. It will also hide the other fields.

jQuery(document).ready(function($) {

	var $notfirstfname = $('.fname').not(':first')
	$('.fname:first').keyup(function() {
		$notfirstfname.val ( this.value );
	});
	var $notfirstlname = $('.lname').not(':first')
	$('.lname:first').keyup(function() {
		$notfirstlname.val ( this.value );
	});
	var $notfirstemail = $('.email').not(':first')
	$('.email:first').keyup(function() {
		$notfirstemail.val ( this.value );
	});

	$('.multi-reg-page').not(':first').css('display', 'none');

});

The above code can be placed in a file named mycustom.js and placed in the /wp-content/uploads/espresso/ folder on your server.

It will need to load up on the registration page, and this function can be placed into a file named custom_functions.php in the same folder to do load up the custom script:

<?php

add_action('wp_enqueue_scripts', 'my_custom_espresso_scripts');

function my_custom_espresso_scripts() {
	global $load_espresso_scripts;

	if ( ! $load_espresso_scripts )
		return;
	// custom script located in /wp-content/uploads/espresso/
	wp_enqueue_script('my-custom-script', content_url('/uploads/espresso/mycustom.js'), array('jquery'), '1.0', true);
}

Hope that helps!


Gary Levine

August 6, 2013 at 3:03 pm

Thanks so much! That’s exactly what I was looking for, and it appears to be functioning perfectly.

Viewing 4 reply threads

The support post ‘Attendee Info in Shopping Cart’ 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