コード例 #1
0
ファイル: Product.php プロジェクト: cewolf2002/magento
 /**
  * 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();
 }
コード例 #2
0
ファイル: Product.php プロジェクト: vberzsin/shop
 /**
  * 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;
 }
コード例 #3
0
ファイル: Product.php プロジェクト: arslbbt/mangentovies
 /**
  * Saving product type related data
  *
  * @return unknown
  */
 protected function _afterSave()
 {
     $this->getLinkInstance()->saveProductRelations($this);
     $this->getTypeInstance()->save();
     return parent::_afterSave();
 }
コード例 #4
0
ファイル: Category.php プロジェクト: natxetee/magento2
 /**
  * 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;
 }
コード例 #5
0
 /**
  * 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();
 }