View Single Post
  #1  
Old 07-28-2003, 07:21 AM
 
mikamedia mikamedia is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 3
 

Default show 'in stock' message in productlist

I would like to add a 'in stock' or 'out of stock' message to my productlist (products.tpl), just like how it is done in product.tpl

I tried to add:

{if $config.Appearance.show_in_stock eq "Y" and $config.General.unlimited_products ne "Y" and $product.distribution eq ""}

{if $product.avail gt 0}{$product.avail}{else}{$lng.txt_no}{/if}

{/if}

to my products.tpl template, but that doesn't work

Does anyone know how to do this?

Thanks!
~john
Reply With Quote