News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Echo shopper field

Started by alexanderflr, September 27, 2017, 15:30:11 PM

Previous topic - Next topic

alexanderflr

Hi again  :D

It's there any possibility to echo a shopper field?

Thank you.
VM 3.2.8, Joomla 3.8.3, PHP 7.0.26

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

alexanderflr

Hi,
In cart and registration email.
VM 3.2.8, Joomla 3.8.3, PHP 7.0.26

GJC Web Design

have a look whats available in the $this in the email templates
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

alexanderflr

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 ) {

:'( :'( :'(


VM 3.2.8, Joomla 3.8.3, PHP 7.0.26

alexanderflr

VM 3.2.8, Joomla 3.8.3, PHP 7.0.26