If you want to get instant help...please click here to submit a ticket [ link ]
We support 7000+ osCommerce add-ons! Affordable, Reliable, Speed on Rails services on customizations of osCommerce shipping, payment, marketing and others.

Keep Products Displayed When Out of Stock

for osCommerce Merchant version 2.2


Retail Price: $20.00


Ask a Question About:Keep Products Displayed When Out of Stock



Here is how to make items stay displayed in your product listings, even if they are out of stock. Some people reported not being able to do this, while others had just the opposite problem. For my own site, there was no other way except to delete a few lines of code.


remove these lines from catalog/checkout_process.php:

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


-just put // in front of each line. This will stop the .php file from writing the products_status as out of stock in the database. Glad I figured this out, it was driving me crazy!

Keep Products Displayed When Out of Stock

04/17/2005 by joshua nyberg



Here is how to make items stay displayed in your product listings, even if they are out of stock. Some people reported not being able to do this, while others had just the opposite problem. For my own site, there was no other way except to delete a few lines of code.


remove these lines from catalog/checkout_process.php:

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


-just put // in front of each line. This will stop the .php file from writing the products_status as out of stock in the database. Glad I figured this out, it was driving me crazy!


As experienced osCommerce Experts, we are glad to help you to install this addon. The process is as follow:
  • You placed an order of this addon or other addons, checkout and receive an email notification of order status
  • Or you can contact us directly using email form, asking us to install this addon for you
  • Once you and we have agreed to start, please send us FTP access by email
  • You will be updated of the installation status
  • You may ask for customization jobs of this addon

You Risk Nothing: No Upfront Payment Required

Our NO RISK POLICY is clear. You pay only for the successful completion of the installation. If you are not satisfied or we are unsuccessful, your site will be returned to its previous working state and you pay nothing! NOT A PENNY!
Once you are satisfied with our help, you can pay us through Paypal.

OUR NO RISK GUARANTEE 1. No upfront payment is required 2. You only pay on successful completion 3. Money Back Guarantee within 90 Days ! You don't get guarantee like this any where else . . . You Don't Risk One Peny!
Add to Cart:



Copyright © 2006-2012 www.oscexp.com