![]() |
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 |
Code:
{if $product.avail ne 0} ? Just a shot in the dark... :? :arrow: http://smarty.php.net/manual/en/language.function.if.php |
All times are GMT -8. The time now is 02:04 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.