
Originally Posted by
mprough
I got it working, I'm just passing it in the session because it really doesn't need stored =)
Thank you
What was your solution?
Can you share the code your used?
the reason I ask is I'm having trouble adding the "Company" And extra fields to the Admin email sent when a new customer signs up. (functions_email.php) Couldn't find detailed instructions anyplace.
Otherwise the Additional Customer Fields at Sign Up plugin is working fine.
(Using ZC 1.5.6a "Green Classic template" & running on PHP 7.2)
I did not have this problem with 1.5.1.
Here is the code I used in 1.5.1 but it does not work in 1.5.6a.
Only testing with "Company" right now will add 2 of the Extra fields after I get this resolved.
functions_email.php
Code:
Around Line 600
// function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $moreinfo = array()) {
(Changed to)
function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $company='', $extrafield='', $extrafield2='', $street_address='', $suburb='', $city='', $state='', $postcode='', $extrafield4='', $moreinfo = array()) {
Around line 630
($login_phone !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_PHONE . '</td><td>' . $login_phone . '</td></tr>' : '') .
/////////////// Added Company Field //////////////////
($company !='' ? '<tr><td class="extra-info-bold">' . OFFICE_COMPANY . '</td><td>' . $company . '</td></tr>' : '') .
($login_fax !='' ? '<tr><td class="extra-info-bold">' . OFFICE_LOGIN_FAX . '</td><td>' . $login_fax . '</td></tr>' : '') .