Jump to content

GET Customer Group id in NEW


Recommended Posts

Hi everybody,

 

I tried too much. I see that old solutions to get the current customer group id failed in 1.6.

Does anyone knows how to do it now ?

I just want to do a : " { if($group==4) }  display some content {/if}

Thanks in advance.

Link to comment
Share on other sites

Hi, this is my code : 

 

 {if($this->context->customer->id_default_customer==4)}
					    
<a class="subMenuLi" href="{$base_dir}30-covering-carbone" style="color: black;">Laminations</a>
<a class="subMenuLi" href="{$base_dir}30-covering-carbone" style="color: black;">Films imprimables</a>
{/if}
						

and this is the error : 


1407244009-sans-titre.png

Edited by Glowned (see edit history)
Link to comment
Share on other sites

  • 6 months later...
×
×
  • Create New...