Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product not diaplaying


DVBHardware

Recommended Posts

Posted

When someone buys the remaining stock of a product and the quanity becomes zero, the product listing is deactivated. How can I keep it listed in the catalog ?

 

Then the regular routine showing *** Out of Stock or Back ordered will do its thing that I know how to configure.

 

Jimmy

I'm not a coder just a splicer.

Posted

admin->configuration->stock

 

check stock level =false

allow checkout =true

 

One or both of these settings look promising!

Posted

I read in a old post that this problem was only in MS1 but fixed in MS2. Thanks for looking in to it.

I'm not a coder just a splicer.

Posted

Found it after 8 hours of searching;

 

Checkout_process.php

 

Change:

 

"set products_status = '0' "

 

to a 1 in below code

tep_db_query("update " . TABLE_PRODUCTS . " set products_quantity = '" . $stock_left . "' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");
     if ($stock_left < 1) {
       tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");
     }
   }

I'm not a coder just a splicer.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...