Magento: Save products stock movements

Tuesday February 7th, 2012

With Magento, the stock of a product is not stored each time it’s changing. However, the stock may be modified in many ways (product ordered, canceled order, manual changes, imports, etc..) and it may be useful to know how and when the stock has changed. Here is a simple extension that saves over time the stock movements of your products.

I tried to install the module on Magento CE 1.3.2.4 (yeah I know it’s an old version but I’d really like to make this work on this version).

I made the change you had to make for 1.5, but when I want to go to a product, I get the error
Fatal error: Call to a member function getReadConnection() on a non-object in /var/www/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php on line 68

Anyone know If it is possible at all to make this module work on 1.3.2.4 ?

Looks great but installed on 1.5.1.0 but get a internal server 500 error when I try to edit a product, might be the Enhanced Product Grid Extension that is installed. I think it would work on a clean install. Uninstalled and can now access the product edit pages again. Any thoughts? Thankyou.

Great plugin but I notice that the stock history is not recorded when a customer pays with Paypal Express. Is this a problem on my end or is this an expected outcome due to the nature of the way the payment is captured?

To Ricardo and bbaccessories; I have it up and running on CE 1.9 but so far only dev with manual changes to the stock but those look fine. Let me know if you have had a chance to try it out on a production site yet?

@Johann
On first stock update for each product there seem to be an error that either sets the movement to the same as the target quantity or nothing, just a dash. Any clue what that could be?

I have used this before thanks!
Now I am trying it with another extension that has multiple stock locations ( Innoexts Multi-warehouse Plus)
Looks like you assume all stock is in stock_id zero, which works for Magento out of the box.
What would it take to lok at he stock_id?

Hey there! I know this is kinda off topic nevertheless I’d figured I’d ask. Would you be interested in exchanging links or maybe guest authoring a blog post or vice-versa? My blog discusses a lot of the same topics as yours and I think we could greatly benefit from each other. If you are interested feel free to send me an email. I look forward to hearing from you! Awesome blog by the way!

Thanks a lot! Thats a big part of what we’re looking for! Now we just need to figure out how to pass a user along when we update stock levels with our custom php-code using the setData-function – any ideas…?

Hi, I successfully copied the files and cleared the cache but I’m still getting the old classic Stock History screen in the admin product page.
I have a new Stock Movements option in the catalog section but not in the product itself. Any thoughts? Many thanks.