Hi again :D
It's there any possibility to echo a shopper field?
Thank you.
where?
Hi,
In cart and registration email.
have a look whats available in the $this in the email templates
Its nothing available :'(
I tried to do this in mail_html_reguser.php to get the shoppergroup id, because it doesn't matter if I can echo the name or the id, in what I want to do will help me either way.
$user =& JFactory::getUser();
$userId = $user->get('id');
$db = JFactory::getDbo();
$query = 'SELECT `virtuemart_shoppergroup_id` ' . ' FROM `#__virtuemart_vmuser_shoppergroups` ' . ' WHERE `virtuemart_user_id` =' . $userId;
$db->setQuery($query);
$shoppergroup = $db->loadResult();
echo $shoppergroup;
This is just an example, what I really want to do is to hide something from registration e-mail if ($shoppergroup == 1221746789 ) {
:'( :'( :'(
No one knows? :(