Need to create 2 different headers depending on product

Discussion in 'Templates customization' started by ceeeeg, Jul 14, 2009.

  1. ceeeeg

    ceeeeg New Member

    Joined:
    Mar 26, 2009
    Messages:
    7
    I need to be able to have a different image per product in the header. Is there a way to dynamically change the header per product ID?

    I tried to add this to the header.html but it doesn't pick up the code.

    Code:
    <p align="center"><img src="http://www.domain.com/images/logo{$p.product_id}.jpg" /></p>
    I have an image named logo2.jpg for the product id of 2. then 3 etc.

    Thanks!

    CJ
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Think you need to do this:

    {foreach from=$member_products item=p}
    <p align="center"><img src="http://www.domain.com/images/logo{$p.product_id}.jpg" /></p>
    {/foreach}


    David

Share This Page