View Single Post
  #11  
Old 10-26-2003, 04:31 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Could use some help with this code

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].avail eq "0"} bgcolor="#CCCCCC"} {if $products[cat_num].avail eq "1"} bgcolor="#FFFF99"} {/if}

What I want it to do is

1. Check if the product is active or disabled "forsale"
2. Check if the product has an availability of 0 or 1.

I was able to make this work with just checking the avail (inventory) number but cannot seem to combine the two checks. It's probably because I am not very smart at this stuff.

I am sure someone who knows what they are doing could fix this in a minute.
Reply With Quote