VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: antonitus on April 28, 2016, 15:48:00 PM

Title: Display shopper group name on frontend
Post by: antonitus on April 28, 2016, 15:48:00 PM
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
Title: Re: Display shopper group name on frontend
Post by: GJC Web Design on April 29, 2016, 00:01:19 AM
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
Title: Re: Display shopper group name on frontend
Post by: antonitus on May 05, 2016, 10:53:15 AM
Thanks once again for your help. I will have a go at this.