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