Posted: 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. |
|
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. |
|
Do i need to add the simplify-mer-attendee-page.js file and where should i add this file? |
|
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 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. |
|
i cant see that its doing anything to the other Attendees. |
|
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? |
|
Here you go |
|
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? |
|
Hi i did put that file in but it disappear in the ftp. But it is in now and its working 100% now. |
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.