コード例 #1
0
 /**
  * Processing object after save data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterSave()
 {
     /**
      * Fix saving attribute in admin
      */
     Mage::getSingleton('eav/config')->clear();
     return parent::_afterSave();
 }
コード例 #2
0
 /**
  * Processing object after save data
  *
  * @return Mage_Core_Model_Abstract
  */
 protected function _afterSave()
 {
     Mage::getSingleton('eav/config')->clear();
     return parent::_afterSave();
 }
コード例 #3
0
ファイル: Attribute.php プロジェクト: sixg/mkAnagh
 /**
  * Processing vendor attribute after save data
  *
  * @return Ced_CsMarketplace_Model_Vendor_Attribute
  */
 protected function _afterSave()
 {
     parent::_afterSave();
     if ($this->getId()) {
         $joinFields = $this->_vendorForm($this);
         if (count($joinFields) > 0) {
             foreach ($joinFields as $joinField) {
                 $joinField->setData('is_visible', $this->getData('is_visible'));
                 $joinField->setData('sort_order', $this->getData('position'));
                 $joinField->setData('use_in_registration', $this->getData('use_in_registration'));
                 $joinField->setData('position_in_registration', $this->getData('position_in_registration'));
                 $joinField->setData('use_in_left_profile', $this->getData('use_in_left_profile'));
                 $joinField->setData('fontawesome_class_for_left_profile', $this->getData('fontawesome_class_for_left_profile'));
                 $joinField->setData('position_in_left_profile', $this->getData('position_in_left_profile'));
                 $joinField->save();
             }
         }
     }
     return $this;
 }
コード例 #4
0
ファイル: __catalog.php プロジェクト: shashankkanungo/magento
    /**
     * Processing object after save data
     *
     * @return Mage_Core_Model_Abstract
     */
    protected function _afterSave()
    {
        /**
         * Fix saving attribute in admin
         */
        Mage::getSingleton('eav/config')->clear();

        Mage::getSingleton('index/indexer')->processEntityAction(
            $this, self::ENTITY, Mage_Index_Model_Event::TYPE_SAVE
        );
        return parent::_afterSave();
    }
コード例 #5
0
ファイル: Attribute.php プロジェクト: natxetee/magento2
 /**
  * Processing object after save data
  *
  * @return Mage_Eav_Model_Attribute
  */
 protected function _afterSave()
 {
     Mage::getSingleton('Mage_Eav_Model_Config')->clear();
     return parent::_afterSave();
 }