Support

Home Forums Event Espresso Premium Hide Additional Attendee Info not working with Seating Chart – Attn Josh

Hide Additional Attendee Info not working with Seating Chart – Attn Josh

Posted: October 2, 2014 at 7:04 pm


Eli

October 2, 2014 at 7:04 pm

EE3 Version 3.1.36.5.P
Seating Chart Version 1.2.1-alpha
latest plugins installed for EE3

First I need to reference Josh’s solution in this thread:
https://eventespresso.com/topic/attendee-info-in-shopping-cart/#post-54506

I’m basically having the same problem but the solution provide (above in the thread) is not working.

To reproduce the problem:
I first noted that when editing an event and trying to select “No info required” on “Additional Attendee Registration Info” it simply does not stick when you Update the event. It instead reverts back to “Full registration information”. That being said I simply want to hide all the Additional Attendee forms when a registrant signs up and wants to purchase more than just 1 attendee. I’m fine with having the primary attendee info (first name, last name, email) copied over (AND HIDDEN) into each Additional Attendee.

With the Seating Chart in the mix it’s a bit different. When registering for an event you select a seat, fill out the forms for the primary attendee, and then if “Group Registrations” are turned on (which they are and I need this to have it allow registering Additional Attendees) they can click the “Add More Attendees?” button. The problem is the users don’t want to fill out additional attendee info every time they Add a new attendee. They simply want to select a seat for that attendee and have the Additional Attendee forms hidden (or in this case hidden and have the info from the primary attendee just copied over using Josh’s solution in the thread above). I tried this and it did not work.

I created the 2 files, and pasted the code in and uploaded them both to the /uploads/expresso folder. Is there anything else I need to be doing?

I feel that this is the solution but it’s not working for me and this is the last component needed to make everything flow beautifully for my client. It is also the most crucial.

Please help as they are trying to launch events this month!
Thanks


Josh

  • Support Staff

October 3, 2014 at 7:44 am

Hi Eli,

The reason the solution in the other thread isn’t working for you is because the solution I gave in the other thread was intended for use with multiple ticket types, using the Multi Event Registration add-on cart checkout. If you look at the example code you’ll note that in the jQuery part it’s targeting form elements on the multi reg page.

Since the seating chart selection happens on the single registration page, you can modify the jQuery part of the example code to target the form elements on the single registration page.

Along with that, the event handler you’ll use will be different. On a multi-reg page, the form fields are all already there ready to go. On a single reg page, more form fields get added each time you click the Add More Attendees button. So you could attach a delegated event handler on the Add More Attendees button for when it’s clicked. Then the elements can be selected and the values copied/pasted, then the form fields hidden.

Please let us know how things go with this.


Eli

October 3, 2014 at 7:52 am

Josh so this is what I have in the mycustom.js right now:

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');
 
});

So I need to change this to what? Because I am not sure how to target the form elements.


Josh

  • Support Staff

October 3, 2014 at 10:35 am

Hi Eli,

I can advise contracting with a JavaScript developer or a web developer that knows some basic jQuery.

The support post ‘Hide Additional Attendee Info not working with Seating Chart – Attn Josh’ 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