View Single Post
  #1  
Old 05-09-2004, 06:20 AM
 
kumar kumar is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 38
 

Default if command - help!

If I have "ABCD" in param05, is there a way to display the following on the product page:


{if $product.param05 eq "A"}Color: Black{/if}
{if $product.param05 eq "B"}Color: White{/if}
{if $product.param05 eq "C"}Size: Big{/if}
{if $product.param05 eq "D"}Size: Small{/if}

etc...

I tried the above, but it only recognizes the first character in the param05 field, and displays the data only for that.

For example, if param05 has "AC", it should display "Color: Black Size: Big", but only displays "Color: Black" because "A" is the first character in param05.

I think it has to do with the "eq" command.

Please help!
Reply With Quote