Jump to content

Display different product number if associated with a group.


Recommended Posts

i have some code that was working a while back but now its not but i need to display different product numbers if they are logged in and are associated with a group... here is what i have so far.

 

this is the product-list.tpl

{if $logged}
<p>
{counter start=1 skip=1 assign=count}
{foreach $customerGroups as $getGroup}
<strong>
{if $getGroup.id_group == 20 }Part # {$product.API}<br />{/if}
{if $getGroup.id_group == 21 }Part # {$product.SWAIM}<br />{/if}
{if $getGroup.id_group == 22 }Part # {$product.HF}<br />{/if}
{if $getGroup.id_group == 9 }Part # {$product.JOHN_CRANE}<br />{/if}


</strong>
{counter}
{/foreach}
</p>
{/if}

 

Link to comment
Share on other sites

×
×
  • Create New...