Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Inventory Depletion


mauimike

Recommended Posts

I'm sorry if this is a double posting - thought I'd posted it yesterday but don't see it listed.

 

Can anyone point me to where inventory is depleted following a sale?

 

Thanks in advance.

 

If you set the 'subtract stock' to true in admin > stock it will, otherwise not.

Link to comment
Share on other sites

checkout_process.php

 

I see a line " if ($stock_left < 1)"

 

I've modified my product_listings.php and product_info.php (amongst others) not to show the in_cart or buy_now button if product_quantity is 0 (etc).

 

So, it's ok with me that the item shows instead of being disabled.

 

Hope that is the only spot where it does the update. :-o

 

Thank you. I was looking for the place in the code where that is applied.
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...