I am trying to set up a script to send out daily emails to my admin to let them know what went out of stock that day only.
It doesn't need to be anything fancy, perhaps even writing items to a text file as products go out of stock until the end of a day when that text files is sent out as an email and cleared for the next day?
Thanks!
Best Answer
Aside from the built-in RSS feed, there are two ways to actually send yourself an email - the actual answer to your actual question:
Purchase an extension:
I have no experience with this extension, but was mentioned on a StackOverflow:
http://www.magentocommerce.com/magento-connect/irzoo-lowstockreport-1278.html
Do it yourself:
Create an observer for
cataloginventory/stock_item
- on the save event. All models have save events provided byMage_Core_Model_Abstract
. On save, it will call your observer, you can examine the stock level at that point.Observer.php:
This sends an email every time a stock item model is saved and the quantity on-hand is lower than the notify quantity set in Admin > Catalog > Manage Products.
Hope that helps.