Support

Home Forums Event Espresso Premium Disable the Attendees 2

Disable the Attendees 2

Posted: November 27, 2013 at 6:24 am

Viewing 8 reply threads


Ryan R

November 27, 2013 at 6:24 am

Is there a way to disable the Attendees 2 and 3 after they add it into the cart.

Because one event has 3 different prices: Registration fee for members, Registration fee for accompanying persons, Registration fee for accompanying persons attendance of banquet only.

So every time a person registers for himself and his partner he needs to enter the info in for Attendee 1, Attendee 2 and Attendee 3 but Attendee 2 and Attendee 3 is the accompanying person and does not need more info about them. The accompanying person information is in the question that Attendee 1 need to fill in.

So is there a way to disable that function.


Sidney Harrell

November 27, 2013 at 9:43 am

There isn’t a built in way to do it, but we have done some customizations for customers in the past to make it happen. Basically, you can use this javascript: https://github.com/sidharrell/eventespresso/commit/9d9c5a470815582d6337d820360325014f781600 and some css to hide the forms for the additional attendees and make it so every change to the primary attendee’s form is mirrored on the additional attendee forms.


Ryan R

November 28, 2013 at 1:47 am

Do i need to add the simplify-mer-attendee-page.js file and where should i add this file?


Dean

November 28, 2013 at 6:21 am

Hi,

Sidney may say to use this another way, but I would add the simplify-mer-attendee-page.js to uploads/espresso/templates directory.

Then I would copy over the following templates to the same directory:

multi_registration_page.php
multi_registration_page_display.php

Then in multi_registration_page_display.php I would add the following just after the first

<?php
wp_register_script( "sidney", EVENT_ESPRESSO_UPLOAD_URL . "templates/simplify-mer-attendee-page.js", array( 'jquery' ), 1, true );
wp_enqueue_script( "sidney" );

This will load the javascript and fire it on the MER registration page.


Ryan R

November 28, 2013 at 6:37 am

i cant see that its doing anything to the other Attendees.


Dean

November 29, 2013 at 2:20 am

Well, if it is working correctly when you type something into the Primary attendee and leave the field, the data will be copied over. Can you provide a link to the registration page so we can see what’s happening?


Ryan R

November 29, 2013 at 2:41 am

Here you go

http://sansor.org/sansor_events/event-registration/


Dean

November 29, 2013 at 2:53 am

Ok, so it’s not working as the javascript isn’t found. It is looking for the file in http://sansor.org/sansor_events/wp-content/uploads/espresso/templates/simplify-mer-attendee-page.js

Can you clarify the file is there?


Ryan R

December 2, 2013 at 2:09 am

Hi

i did put that file in but it disappear in the ftp. But it is in now and its working 100% now.
Thanks for the help

Viewing 8 reply threads

The support post ‘Disable the Attendees 2’ 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