View Single Post
  #56  
Old 08-31-2010, 03:30 AM
  lewaff's Avatar 
lewaff lewaff is offline
 

eXpert
  
Join Date: Jun 2007
Location: Nuneaton-England
Posts: 225
 

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

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
__________________
Thank's
Lewis Afford
www.mobile-phone-batteries.eu X-cart v4.4.5 gold
www.mobile-phone-batteries.co.ukv4.4.5 gold
www.qualitechnic.co.uk v4.4.5 gold
Add-on: X-AOM (Advanced Order Management)
Reply With Quote