Support

Home Forums Event Espresso Premium address 2 not transferred to registration form for member

address 2 not transferred to registration form for member

Posted: June 17, 2013 at 9:25 am

Viewing 2 reply threads


Janis

June 17, 2013 at 9:25 am

Hi

In my question groups set up I have all of the address fields and the phone field added to the personal information group.  (So then when I create a new event I don’t tick ‘address information’ for ‘questions for attendees’.)

When I test registering for an event as a member (who has something specified for address 2 in their profile page) it transfers across all of the name, address and phone fields to the registration form bar address 2.  Any help with this appreciated.


Sidney Harrell

June 18, 2013 at 12:35 am

This code should be in the next version (3.1.34) coming soon. In the meantime, you can open up includes/functions/form_build.php and insert the following, starting at line 87:

case $question->system_name == 'address2':								
								$answer = $attendee_number === 1 ? htmlspecialchars( stripslashes( get_user_meta($userid, 'event_espresso_address2', TRUE ) ), ENT_QUOTES, 'UTF-8' ) : $answer;
								$html .= empty($answer) ? '' : '<input name="' . $question->system_name . $multi_name_adjust . '" type="hidden" value="' . $answer . '" class="' . $class . '" />';
								break;


Janis

June 21, 2013 at 2:48 am

Thank you.

Viewing 2 reply threads

The support post ‘address 2 not transferred to registration form for member’ 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