Jump to content

How to validate if customer is in group


Recommended Posts


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


'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...