News:

Support the VirtueMart project and become a member

Main Menu

Showing Related products only to specific Shopper groups

Started by jordanvm, September 09, 2013, 16:19:05 PM

Previous topic - Next topic

jordanvm

Hi,

I am trying to use this to show the Related products only to users in Shopper group with ID 5:

if (!empty($this->product->customfieldsRelatedProducts) && ($currentVMuser->shopper_groups == "5"))

Obviously this is wrong in some way. Any help?

thanks,
Jordan