Glowned Posted August 5, 2014 Share Posted August 5, 2014 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 More sharing options...
nhelliwell Posted August 5, 2014 Share Posted August 5, 2014 This? { if($this->context->customer->id_default_customer==4) } Link to comment Share on other sites More sharing options...
Glowned Posted August 5, 2014 Author Share Posted August 5, 2014 Hello nhelliwell, That doesn't work, white screen. :/ Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2014 Share Posted August 5, 2014 turn on error reporting and show us error code (you will see error code instead white page) 1 Link to comment Share on other sites More sharing options...
Glowned Posted August 5, 2014 Author Share Posted August 5, 2014 (edited) 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 : Edited August 5, 2014 by Glowned (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 5, 2014 Share Posted August 5, 2014 you saved file with UTF-8 encoding? Link to comment Share on other sites More sharing options...
Glowned Posted August 5, 2014 Author Share Posted August 5, 2014 (edited) Yes, i did :/ EDIT : The error changed : Edited August 5, 2014 by Glowned (see edit history) Link to comment Share on other sites More sharing options...
Glowned Posted August 5, 2014 Author Share Posted August 5, 2014 I removed the (), the error evolved. Link to comment Share on other sites More sharing options...
Sean_Cez Posted February 10, 2015 Share Posted February 10, 2015 Was anyone able to figure this out? I've been searching for a few hours now and I'm only finding old 1.4/1.5 solutions that don't work anymore. This seems to be the closest thing I can find so far. Thanks guys! Link to comment Share on other sites More sharing options...
Recommended Posts