I fixed the error in my original post, sorry about that. Try with the service name of the field - replace "
{if $v.active eq "Y" && $v.name eq "stock_indicator"}"
with
{if $v.active eq "Y" && $v.service_name eq "WHATEVER THE FIELD SERVICE NAME IS"}
Quote:
Originally Posted by lewaff
also I want it to work with "Quantity in stock (items):" field which works with the live stock levels on the store
|
Not sure I follow - you want it to use product quantity field or you want it to show instead of it? If you want it to use product quantity field you don't need any of the above. Just do
Code:
{if $product.avail gt 0}
SHOW MESSAGE ITEM IN STOCK
{else}
SHOW MESSAGE FOR ITEM OUT OF STOCK
{/if}
You can't have "discontinued" message unless you use extra field