View Single Post
  #2  
Old 08-05-2010, 08:11 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Visual stock amount

Use an if statement to show what you want

{if $product.avail eq 0}
show image/message for no stock
{elseif $product.avail gte 1 && $product.avail lte 5}
1-5 image/message
{elseif $product.avail gte 6 && $product.avail lte 10}
6-10 image/message
{elseif $product.avail gte 11}
11-.... image/message
{/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote