/** * 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(); }
/** * Processing object after save data * * @return Mage_Core_Model_Abstract */ protected function _afterSave() { Mage::getSingleton('eav/config')->clear(); return parent::_afterSave(); }
/** * 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; }
/** * 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(); }
/** * Processing object after save data * * @return Mage_Eav_Model_Attribute */ protected function _afterSave() { Mage::getSingleton('Mage_Eav_Model_Config')->clear(); return parent::_afterSave(); }