VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: 2cool on March 24, 2016, 15:01:39 PM

Title: user registration mail not showing custom fields
Post by: 2cool on March 24, 2016, 15:01:39 PM
My user registation email doesnt show all custom fields?
Is there a limit or how can/should this be configured.
Both are renamed txt fields (fax and tax_exemption_number)

Using Joomla! 3.4.8 and VirtueMart 3.0.14

Thanks,
Pas
Title: Re: user registration mail not showing custom fields
Post by: 2cool on March 25, 2016, 09:27:46 AM
The user is recieving an email with all fields?
Looking at /public_html/components/com_virtuemart/views/user/tmpl

mail_html_regvendor.php - email to admin
mail_html_reguser.php - email to user

Difference is in line 69-74 :
mail_html_regvendor.php
    foreach ($this->userFields['fields'] as $userField) {
if (!empty($userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'BT') {
    echo $userField['title'] . ': ' . $userField['value'] . $li;
}
    }
    ?>


mail_html_reguser.php
    foreach ($this->userFields['fields'] as $userField) {
if (!empty($userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'BT' && $userField['type'] != 'hidden') {
    echo $userField['title'] . ': ' . $userField['value'] . $li;
}
    }
    ?>


Any help info is welcome.

Regards, Pas
Title: Re: user registration mail not showing custom fields
Post by: 2cool on March 27, 2016, 19:47:53 PM
testing lots of issues but still not working.
normal joomla registration = ok (user and admin receive email)
virtuemart registration (Account Maintenance) user get mail, admin not
beez template same problem
Could the 'custom fields' be the problem? I renamed and rearranged these.

All tips and suggestions are welcome.

Regards,
Pas
Title: Re: user registration mail not showing custom fields
Post by: 2cool on April 13, 2016, 13:22:23 PM
update to vm 3.0.16 solved this bug.

Regards,
Pas