We try to override two functions from the Mage_CatalogInventory_Model_Stock_Item model class but unfortunately nothing happens. Maybe we missed something?
#File: app/code/local/Namespace/Module/etc/config.xml
<blocks>
<models>
<cataloginventory>
<rewrite>
<stock_item>Namespace_Module_Model_Stock_Item</stock_item>
</rewrite>
</cataloginventory>
</models>
</blocks>
#File: app/code/local/Namespace/Module/Model/Stock/Item.php
<?php
class Namespace_Module_Model_Stock_Item extends Mage_Core_Model_Abstract
{
public function getMinSaleQty()
{
echo 'test';
exit;
}
public function getQtyIncrements()
{
echo 'test';
exit;
}
}