Originally Posted by
swguy
I'm guessing that in the old installation, you edited includes/functions/functions_email.php and changed function email_collect_extra_info() to account for these extra arguments.
Rather than do that, it would be better for you to populate the moreinfo array with this data.
add , $moreinfo as the last call to email_collect_extra_info in includes/modules/YOUR_TEMPLATE/create_account, i.e.
$extra_info = email_collect_extra_info($name, $email_address, $account->fields['customers_firstname'] . ' ' . $account->fields['customers_lastname'], $account->fields['customers_email_address'], $account->fields['customers_telephone'], $account->fields['customers_fax'], $moreinfo);
then right before this line:
$moreinfo = [];
if (EXTRAFIELD_REQUIRED == 'true') {
$moreinfo[ENTRY_EXTRAFIELD] = $extrafield;
}
if (EXTRAFIELD_REQUIRED2 == 'true') {
$moreinfo[ENTRY_EXTRAFIELD2] = $extrafield2;
}
if (EXTRAFIELD_REQUIRED3 == 'true') {
$moreinfo[ENTRY_EXTRAFIELD3] = $extrafield3;
}
if (EXTRAFIELD_REQUIRED4 == 'true') {
$moreinfo[ENTRY_EXTRAFIELD4] = $extrafield4;
}
Note to @royaldave - we need a notifier here too so this can be done without changing this core file.
Bookmarks