3

I would like to override the inventory set in Magento with my own custom inventory coming from our ERP. I had to do something similar with getPrice, but I can't seem to find the getQty function in Mage.

Any help locating it and setting a base amount would be most helpful!

1 Answer 1

3

Magento has a whole module about inventory: Mage_CatalogInventory, the class which is the stock qty is Mage_CatalogInventory_Model_Stock_Item and it has a qty property and field in the database.

All the stuff about checking the available qty and increasing/decreasing it happens in Mage_CatalogInventory_Model_Observer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.