Quote:
Originally Posted by adpboss
Could really use some help with my code
It's so close
|
I do believe that you can use 'and' in your 'if' statements. So, you code might look something like this:
Code:
{* $Id: products_colors.tpl,v 1.0 2003/10/26 13:07:50 ADPBoss Exp $ *}
{if $products[cat_num].forsale eq "N"} bgcolor="#00CCCC"}
{else}
{if $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "0"} bgcolor="#CCCCCC"}
{if $products[cat_num].forsale eq "N" and $products[cat_num].avail eq "1"} bgcolor="#FFFF99"}
{/if}
I'm not a master programmer either, so this may be a shot in the dark. Maybe Shan, Boomer or Funky could shed some light on this if thay happen to stroll through here.
Piper
P.S. Let me know what happens!