News:

Support the VirtueMart project and become a member

Main Menu

Custom fields are not wrote in the email for admin

Started by AntonioS28, May 24, 2018, 10:32:26 AM

Previous topic - Next topic

AntonioS28

Hi, first of all i've Joomla 3.8.8 and VirtueMart 3.2.14 all updates.

The problem is that when an user register on the site, the admin does not receive all the fields in the email.
For example the custom field VAT (text type) is not show in the email.
How to do?

mail html vendor
<?php

    echo vmText::_('COM_VIRTUEMART_USERNAME') . ' : ' $this->user->username $li;

    echo vmText::_('COM_VIRTUEMART_DISPLAYED_NAME') . ' : ' $this->user->name $li $li;

    echo vmText::_('COM_VIRTUEMART_ENTERED_ADDRESS') . $li;



    foreach ($this->userFields['fields'] as $userField) {

if (!empty($userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'hidden') {

    echo $userField['title'] . ': ' $userField['value'] . $li;

}

    }

    ?>



mail raw reg vendor
<?php echo vmText::sprintf('COM_VIRTUEMART_WELCOME_VENDOR'$this->vendor->vendor_store_name) . $li$li ?>

<?php echo vmText::_('COM_VIRTUEMART_VENDOR_REGISTRATION_DATA') . " " $li?>

<?php echo vmText::_('COM_VIRTUEMART_USERNAME')   . $this->user->username $li?>

<?php echo vmText::_('COM_VIRTUEMART_DISPLAYED_NAME')   . $this->user->name $li$li?>
<?php echo vmText::_('piva-codfisc')   . $this->pivacodfisc $li;
echo vmText::_('p. iva-cod. fiscale')   . $this->user->pivacodfisc $li;?>


<?php echo vmText::_('COM_VIRTUEMART_ENTERED_ADDRESS')   . $li ?>





<?php



foreach ($this->userFields['fields'] as $userField) {

    if (!empty(
$userField['value']) && $userField['type'] != 'delimiter' && $userField['type'] != 'hidden') {

echo $userField['title'] . ' ' $userField['value'] . $li;

    }

}



echo 
$li;



echo 
JURI::root() . 'index.php?option=com_virtuemart&view=user' $li;



echo 
$li;

//echo JURI::root() . 'index.php?option=com_virtuemart&view=user&virtuemart_user_id=' . $this->_models['user']->_id . ' ' . $li;

//echo JURI::root() . 'index.php?option=com_virtuemart&view=vendor&virtuemart_vendor_id=' . $this->vendor->virtuemart_vendor_id . ' ' . $li;

?>