/** * Saving product type related data and init index * * @return Mage_Catalog_Model_Product */ protected function _afterSave() { $this->getLinkInstance()->saveProductRelations($this); $this->getTypeInstance(true)->save($this); /** * Product Options */ $this->getOptionInstance()->setProduct($this)->saveOptions(); return parent::_afterSave(); }
/** * Saving product type related data and init index * * @return Mage_Catalog_Model_Product */ protected function _afterSave() { $this->getLinkInstance()->saveProductRelations($this); $this->getTypeInstance(true)->save($this); /** * Product Options */ $this->getOptionInstance()->setProduct($this)->saveOptions(); $result = parent::_afterSave(); Mage::getSingleton('index/indexer')->processEntityAction($this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE); return $result; }
/** * Saving product type related data * * @return unknown */ protected function _afterSave() { $this->getLinkInstance()->saveProductRelations($this); $this->getTypeInstance()->save(); return parent::_afterSave(); }
/** * Init indexing process after category save * * @return Mage_Catalog_Model_Category */ protected function _afterSave() { $result = parent::_afterSave(); Mage::getSingleton('Mage_Index_Model_Indexer')->processEntityAction($this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE); return $result; }
/** * Saving product type related data * * @return unknown */ protected function _afterSave() { $this->getLinkInstance()->saveProductRelations($this); $this->getTypeInstance()->save(); /** * Product Custom Options */ /* @var $optionModel Mage_Catalog_Model_Product_Option */ // $options = $this->getProductOptions(); // if (is_array($options)) { // foreach ($this->getProductOptions() as $option) { // $this->getOptionInstance()->addOption($option); // } // } $this->getOptionInstance()->setProduct($this)->saveOptions(); parent::_afterSave(); }