Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

echoing stock available on low stock items


mhunter

Recommended Posts

Posted

Hello,

 

My company doesnt want to show stock, but if a customer tries to order say, 3 items when we actually have 2 in stock, they want to display message saying by how much to alter their quantity.

 

I can display message ok but am having trouble echoing out the actual stock amount on the item that's low. I've been looking at order_details and shopping_cart trying to figure out the best way to capture. I can do another query - although the information already has to be known and in a variable some where. I've done a print_r($GLOBALS) from shopping_cart.php but havnt figured out yet where the info is stored. Plus - I'm not sure how to specify which item is low if the customer is order more than one item.

 

If anyone has any ideas I would appreciate it.

 

PS What's the Stock re-order level under stock in Admin for ? It doesnt seem to do anything.

 

Thx

Archived

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

×
×
  • Create New...