evolution.x Posted February 28, 2011 Share Posted February 28, 2011 Hi,I am trying to show the group name of a customer in the header of the my account block.I have tried: {if $id_group eq 2} TEST {/if} But this does not work?Any help on this would be great!!!EDIT:I have also tried: {if $group->id == 2} TEST {/if} This does not work either??Basically, if a customer is in group 2 (Trade) i want the header of the my account block to show TRADE ACCOUNT not MY ACCOUNT ??? Link to comment Share on other sites More sharing options...
JeffV Posted March 1, 2011 Share Posted March 1, 2011 Evolution X,Keep me posted on your progress, as I am in need of this functionality as well. Thanks for the post.Jeff Link to comment Share on other sites More sharing options...
evolution.x Posted March 3, 2011 Author Share Posted March 3, 2011 Shameless Bump, Sorry.Anybody have any ideas on how to accomplish my problem?Regards Link to comment Share on other sites More sharing options...
Burhan BVK Posted March 3, 2011 Share Posted March 3, 2011 You would have to edit the my account block php file and assign the group id or the cookie. After that you should be able to access it within the tpl file. Link to comment Share on other sites More sharing options...
evolution.x Posted March 3, 2011 Author Share Posted March 3, 2011 Thanks for your reply, how do i go about that? I have tried the "if" variable for the group id but I'm not sure how to query the cookie for the logged in customer?Have you got an example?Thanks in advance. You would have to edit the my account block php file and assign the group id or the cookie. After that you should be able to access it within the tpl file. Link to comment Share on other sites More sharing options...
Recommended Posts