Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

products_quantity low stock e-mail notification


RodrigoDC

Recommended Posts

Posted

Is there a module or a hack that would allow an admin to be notified via e-mail whenever a product is below an critical number of items? Or is this function already included on realese 2.2? If so, where?

 

Thank you very much in advance.

 

RV :?:

Posted

You can do it by adding an extra query to checkout_process.php.

Right after the update of the stock you can add another one that checks the actual quantity. If that quantity is below XX you call tep_mail() with a message that says 'Only $number left of $item'

 

osCommerce. Gotta love it. :)

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Archived

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

×
×
  • Create New...