View Single Post
  #39  
Old 08-28-2010, 12:09 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
amy2003 is right - it is most likely the php file that sets the indicator value. You need to look in product.php and products.php. There will be a SQL statement selecting all extra fields and their values and then some line that sets the indicator based on its extra field value (code could be in /modules/Extra_Fields/extra_fields.php or in one of the products related functions in include/func/func.product.php). There could also be a clause in the SQL to say "select all products where indicator is greater then 0" so like amy2003 says products with less then 0 indicator may not be selected at all


Firstly - Thank you Steve and Amy for trying to help me! Much appreciated!

I found in /include/func/func.product.php the following and not sure what is does or if it can be changed but the word stock_indicator is present so I guess this must be it as stock_indicator is a custom field that was added and I do not know of anything else in xcart with that name

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


It is very hard looking for something if you are not sure what it is you are looking for
__________________
Regards

Dan


Xcart version:
4.1.10 GOLD
Reply With Quote