News:

Support the VirtueMart project and become a member

Main Menu

Display shopper group name on frontend

Started by antonitus, April 28, 2016, 15:48:00 PM

Previous topic - Next topic

antonitus

Is there anyway I can display the shopper group name on the frontend?

I have buyers who come from the Public (public group) and Small Shops (small shops group).

Thanks,
Tony
Joomla V3.5.1
Virtuemart V3.0.16

GJC Web Design

see if it is included in any of the objects other wise something like

$userModel = VmModel::getModel('user');
   $vmuser = $userModel->getCurrentUser();
   $vmgroup = $vmuser->shopper_groups;

that gives u the group id

then query the name
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

antonitus

Thanks once again for your help. I will have a go at this.
Joomla V3.5.1
Virtuemart V3.0.16