View Single Post
  #41  
Old 08-28-2010, 10:38 PM
  Dan.roh's Avatar 
Dan.roh Dan.roh is offline
 

eXpert
  
Join Date: Jul 2008
Posts: 397
 

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

Quote:
Originally Posted by cflsystems
This is the pice of code that tells the script only products with indicator 0 and up to be included. If you comment it out all products will be included. Place # in front of the lines

Steve

I found the same type of code in /include/func/func.product.php but just further down

#BCSE Begin
#if($current_area == 'C')
#$stock_condition = " AND $sql_tbl[products].stock_indicator >= 0";
#BCSE End

I also comment it out and still it was disabling the -1 products. As soon as a added the 3rd condition to turn the variable red and display "Discontinued" it all worked! Strange?

Furthermore the 3rd condition was only applied in product.tpl so product still disappear in product list but the part where you go into the product to view the details of the product is showing with "Discontinued" on it.

Should I also apply the 3rd condition in products.tpl? I don't think I need to because all my -1 (Discontinued) products will be changed to the status of "hidden but available for sale"
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote