Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checking stock level when adding to cart


cornishpirate

Recommended Posts

If a customer tries to Add to Cart a greater quantity than is in stock, I want to display an alert box with the number that can be ordered.

 

I don't really need to allow for items that may already be in other customers carts.

 

Using tep_get_products_stock in the 'add_product' section of application_top should do it, but before I launch in, I just thought I'd check to see if it had already been done.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...