Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I stop the cart from disabling products when sold-out?


xao

Recommended Posts

Posted

I have an "Out Of Stock" contrib installed, so I want to keep the products listed on the website when the last item is sold, but right now, when the last item is sold, the shopping cart automatically disables it.

 

How do I prevent it from disabling the item and just keep the stock at '0'?

 

Thanks!

Posted
I have an "Out Of Stock" contrib installed, so I want to keep the products listed on the website when the last item is sold, but right now, when the last item is sold, the shopping cart automatically disables it.

 

How do I prevent it from disabling the item and just keep the stock at '0'?

 

Thanks!

 

Hi, Have you looked into admin --> Configuration --> Stock and setting to Allow Checkout?

Posted
Hi, Have you looked into admin --> Configuration --> Stock and setting to Allow Checkout?

 

Yes, none of those options do what I am wanting it to do.

 

I have the cart setup to show a button if an item is out of stock, but "ACTIVE", I also have it setup where if they try and order too many, ie: I have 3 in stock, but they put 5 in their cart, it will show "*** Insufficient stock" and will prevent then from checking out.

 

The problem is, if I have three in stock, they order three and checkout the shopping cart then turns the item "INACTIVE" and it no longer displays in the category until I re-activate the item. I want the cart to perform the way it is now except to stop making the products "INACTIVE" if a customer purchases the last one.

Posted

I had the same probelm and this post fixed it for me -

 

 

 

 

An easy way to keep your out of stock items visible is to comment out one line in -

 

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']) . "'");

}

 

This will of course not work for those products already set inactive but from here on you at least will not have to go through your admin catalog to reactivate inactive products. Make sure you have out of stock buttons in place.

Posted

i want my cart to do the opposite, my items that are sold out are staying on display, and i would like them to deactivate untill i have more of them to sell, anyone know how to do this

Posted
i want my cart to do the opposite, my items that are sold out are staying on display, and i would like them to deactivate untill i have more of them to sell, anyone know how to do this

 

Hi,

 

Have you looked into admin --> Configuration --> Stock and change setting of Allow Checkout to false?

  • 6 months later...
Posted
Hi,

 

Have you looked into admin --> Configuration --> Stock and change setting of Allow Checkout to false?

 

 

That doesn't do it either.

 

I have seen this question asked repeatedly (including by me) but no solution for this problem in any of them.

 

If anyone can help, please do.

 

 

Thanks,

Tim

Archived

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

×
×
  • Create New...