protected function _afterSave(Varien_Object $object) { parent::_afterSave($object); $this->_saveCategoryProducts($object); /** * Add identifier for new category */ if (substr($object->getPath(), -1) == '/') { $object->setPostedProducts(null); $object->setPath($object->getPath() . $object->getId()); $this->save($object); } return $this; }
/** * Save data related with product * * @param Varien_Object $product * @return Mage_Catalog_Model_Resource_Eav_Mysql4_Product */ protected function _afterSave(Varien_Object $product) { $this->_saveWebsiteIds($product)->_saveCategories($product)->refreshIndex($product); parent::_afterSave($product); return $this; }