Jump to content

How to validate if customer is in group


Idiotic

Recommended Posts

Hello,


in 1.6.1.6 I am trying to check if user is in group with id 6 using this:


controller:


'hisGroup' => ($this->context->customer->logged AND (Customer::getDefaultGroupId((int)$this->context->customer->id) == 6) ? true : false)


tpl: {if $hisGroup}...{/if}


although its not working. Do you have any idea why is that?


Thanks for reply.


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...