Protected Member Functions | |
_afterSave () |
Definition at line 35 of file Managestock.php.
_afterSave | ( | ) | [protected] |
After change Catalog Inventory Manage value process
Reimplemented from Mage_Core_Model_Abstract.
Definition at line 43 of file Managestock.php.
00044 { 00045 $newValue = $this->getValue(); 00046 $oldValue = Mage::getConfig()->getNode( 00047 Mage_CatalogSearch_Model_Fulltext::XML_PATH_CATALOG_SEARCH_TYPE, 00048 $this->getScope(), 00049 $this->getScopeId() 00050 ); 00051 if ($newValue != $oldValue) { 00052 Mage::getSingleton('cataloginventory/stock_status')->rebuild(); 00053 } 00054 00055 return $this; 00056 }