View Single Post
  #55  
Old 08-31-2010, 03:03 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: How do I change the "out of stock" message to "sold out"?

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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote