View Single Post
  #3  
Old 01-25-2013, 02:22 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: How to replace quantity in stock with stock indicator

A simple version is this:

PHP Code:
Traffic lights for stock levels:

{if 
$product.avail eq 0}
    
No Stock
{elseif $product.avail lt 10}
    
Low Stock
{else}
    
Good Stock

__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote