Sorry For confusing you
Yes i did want to use the Product Quantity field
and that bit of code works perfectly
but i also would like the customers still to be able to pre order when stock level 0
but it removes the the buy button
I am sure i have missed somthing simple(A bit long in the Tooth)
But I must say thanks and thanks to all this help on the forum it reminds me why i changed from CCP Carts now
lewis
Quote:
Originally Posted by cflsystems
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"}
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
|