Support

Home Forums Event Espresso Premium Personal info copied to additional attendees with separate fees

Personal info copied to additional attendees with separate fees

Posted: June 19, 2013 at 9:32 am

Viewing 12 reply threads


Robert

June 19, 2013 at 9:32 am

Greetings!

I have just installed version 3.1.33.2 with the Members, Multi Event Registration, and Ticketing plugins (among others).  Our organization needs a system to allow music teachers to register their own students for competitions.  I have two main questions:

The teacher’s personal info should be associated with each additional attendee (i.e. student) in the database but not required to be entered again with each additional attendee’s information.  I do not see how to accomplish that.  I have additional fields for each student (first name, last, repertoire info, etc.) but don’t want to require the teachers to enter their personal info over and over (some have over 20 students).  If it copies that info automatically, that is fine (editable or not is ok).
Each additional attendee will require an additional fee.  How can an additional fee be added for each one (automatically is fine)?

Perhaps a summary of the form would help.  The ideal layout would be something like this:

REGISTRATION DETAILS

Personal Information
(all copied from WP via Members Plugin – this is the teacher’s information that needs to be associated in the DB with each attendee)
First Name*
Last Name*
Email*
Phone*

Student Information
Price:  $30
(the additional info for each student – I won’t add all details here)
Student First Name*
Student Last Name*
Grade* [Select One]
Event/Medium* [Select One]

[Add Additonal Attendee ]

(then when an additional “student” is selected, we only want the “Student Information” with the fee to be added, not the Personal Information from the Teacher/Member)

Thanks!

 


Josh

  • Support Staff

June 19, 2013 at 10:33 am

Hi Robert,

I think the way forward on this on is to use the primary attendee for the Teacher, and the additional attendees will all be their students. There are a few new hooks in the beta version that make it possible for the Primary attendee to not be charged a fee (so only the additional attendees/students will add to the total price calculation).

The “Grade” and “Event/medium” questions can be placed into a “student” question group so this group can be assigned to the additional attendee forms. You’ll need to set the additional attendee form to display “Full registration information”, but you’ll only check the question groups that apply to the students.

You can download the latest beta from your account page by opting into the Pre-release channel. You will also need to install the custom files add-on to make the modification:

https://eventespresso.com/wiki/custom-files-addon/

Once that’s set up, you can add this code to the custom_functions.php file to exclude the primary attendee count from the confirmation page and adjust the price to exclude the primary attendee:


Josh

  • Support Staff

June 19, 2013 at 10:37 am

One other thing: There’s a bit of a limitation to the question field labels in that First name and last name need to be consistent. But you can change the registration form headings to say something like Teacher Information and Student Information respectively.


Josh

  • Support Staff

June 19, 2013 at 11:48 am

I should also clarify that the version that you’ll need to make the above code work is the Event Espresso 3.1.34.P Beta, which doesn’t require github access. We’re you looking to get github access for 4.0 as well?


Robert

June 19, 2013 at 11:51 am

Nope – just what is needed.  Thanks for the clarification.  I tried installing 4.0.1.beta.8 and was receiving errors (data_migration_scripts.php not being found and others).

I will try v3.1.34.B.1.

Thanks!


Robert

June 19, 2013 at 12:23 pm

Thanks, Josh!

I installed version 3.1.34.B.1, added the three custom files to the appropriate directory, added the code you provided to the end of custom_functions.php, and it appears to be working.

I did however receive an error when hitting “submit” once registrant info was filled out (Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘espresso_primary_attendee_count’ was given in /wp-includes/plugin.php on line 173).

I was also still required to manually add the primary registration (i.e. teacher) contact info for each additional attendee.  Is there a way to avoid that?  (either it is automatically entered or doesn’t show up at all)

Thanks!


Josh

  • Support Staff

June 19, 2013 at 12:31 pm

Hi Robert,

I’m not sure about what would cause the warning, I will look into that.

To make the information get added automatically, You’ll need to have the information entered into the WP User profile that’s under Events Profile information and be logged into the site when you fill out the registration form. There are more details here:

https://eventespresso.com/wiki/members-integration-addon/


Robert

June 19, 2013 at 1:11 pm

Josh,

Thanks for the quick response!  The WP user info is being entered automatically under Personal Information for the primary attendee (when logged in and doing a test registration);  the issue relates to the additional attendees.  It currently asks for that information again, and it isn’t automatically populated.  Having to re-enter it 20+ times would be problematic.

I’m also noticing another issue:  when the “teacher” prints an invoice from within their “My Events” screen (within WP account), their “registration” is being counted as well.  For example, with the test run I did, I registered two students with a fee of $30 each.  The total was $90.  I also see the “teacher” indicated as not having paid under the attendee report (within admin screens).  It does however tabulate the total correctly after hitting submit (when the error message appears).

I might mention that each teacher is also required to pay a teacher fee.  I was going to do that with a separate event, but perhaps our adjustments can kill two birds with one stone – could we make it so that the teacher selects a fee (teacher fee or student fee) each time?  So they would select the fee with their personal information once at the very top and then select student fee for each additional attendee.  Would it be easier to continue trying to fix the current problem or go at it from a different angle with different fees for each attendee?

Thanks!
Robert

 


Josh

  • Support Staff

June 19, 2013 at 1:34 pm

Hi Robert,

I really don’t have answers in this case. It will likely take some custom development to achieve what you are after since Event Espresso doesn’t have a feature that loads in additional fields for the WP user integration. Either that or the registration forms not include all the student information and this gets handled by means of a custom form.

With the additional fee that is a different price for the teacher, that’s also something that isn’t possible with using the standard registration form. It’s something that you could do with the Multi Event Registration add-on, but the above code example that I posted doesn’t work with the Multi Event Registration cart process.


Robert

June 19, 2013 at 1:37 pm

Josh,

I apologize for not thinking of this before the previous post – one easy solution I just tested is to require the student info with the initial registration.  I removed that code from the custom files (very easy of course), and that fixes the other issues I mentioned above with the invoices, etc.

It does however bring up another issue (in addition to the primary registrant info not copying to each additional attendee as described above) – each additional attendee receives a confirmation Email.  That would be a nuisance – in our situation, a teacher registering 20 students would receive 20 Emails.  Is there a way for that teacher to receive just one Email with one registration summary?

Also, one other error I am receiving – when updating a record (after initial “Submit” button hit but before hitting the “Confirm Registration” button)  after editing it, I receive this error:  “Call to undefined function espresso_update_primary_attendee_total_cost() in /wp-content/plugins/event-espresso/includes/process-registration/payment_page.php on line 154”

Thanks!
Robert


Josh

  • Support Staff

June 19, 2013 at 1:55 pm

Hi Robert,

With the emails getting condensed into one email, this would require some custom development.

With the error that you’re seeing on the confirmation page, it may be that you’re missing some files in your Event Espresso plugin. I double checked this on the beta release and the espresso_update_primary_attendee_total_cost function is defined in /includes/process-registration/add_attendees_to_db.php


Robert

June 19, 2013 at 4:10 pm

Josh,

I think that playing with some settings has revealed a workable solution – not allowing the registration form so that registrants have to select the “Add to Cart” option then provides the “Copy” feature on the registration page (it isn’t there otherwise for some reason).

I was also able to turn off the automatic Emails in the General Settings (which is really all I wanted).

I have some other questions (less critical) that I will bring up tomorrow under a separate thread…

Thanks so much for your help!
Robert


Josh

  • Support Staff

June 20, 2013 at 10:01 am

Sounds great. We will look forward to the new threads.

Viewing 12 reply threads

The support post ‘Personal info copied to additional attendees with separate fees’ 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