Announcement

Collapse
No announcement yet.

Conditional statements for product header

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Conditional statements for product header

    I am using the code below on my Products Display:Page Template to customize product headers without adding to each product. It is working fine.

    <mvt:if expr="l.settings:category:code IN '3200,3201,3202,3203,3204,3205,3206,Wrest-YWN'">
    <iframe src="http://www.aaustore.com/navWrestling.html" style="border:none;width:850px;scroll:none;height: 125px"></iframe>
    <mvt:elseif expr="l.settings:category:code IN '0200,0201,0202,0203,0204,0205,0206'">
    <iframe src="http://www.aaustore.com/navBaseball.html" style="border:none;width:850px;scroll:none;height: 125px"></iframe>
    <mvt:else>
    </mvt:if>


    I am setting up short links for SEO and the code continues to be fine as long as the category is passed. http://ziagraphics.com/AAU/0200/gbs1201.html

    From the Basket Contents page, I have no category and the code is returning the wrestling frame.
    http://ziagraphics.com/AAU/product/gbs1201.html

    I have tried adding the lines below but it is not working. Any suggestions?


    <mvt:if expr="l.settings:category:code IN '3200,3201,3202,3203,3204,3205,3206,Wrest-YWN'">
    <iframe src="http://www.aaustore.com/navWrestling.html" style="border:none;width:850px;scroll:none;height: 125px"></iframe>
    <mvt:elseif expr="l.settings:category:code IN '0200,0201,0202,0203,0204,0205,0206'">
    <iframe src="http://www.aaustore.com/navBaseball.html" style="border:none;width:850px;scroll:none;height: 125px"></iframe>
    <mvt:elseif expr="ISNULL l.settings:category:code">
    &nbsp;
    <mvt:else>
    </mvt:if>
Working...
X