Jump to content

Display customer group name in the header of myaccountblock (if group id XX)


Recommended Posts

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

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

×
×
  • Create New...