protected function _getLoadSelect($field, $value, $object) { $select = parent::_getLoadSelect($field, $value, $object); $vendor = Mage::helper('umicrosite')->getCurrentVendor(); if ($vendor) { $select->where("udropship_vendor=? || identifier='no-route'", $vendor->getId()); } else { $select->where('udropship_vendor is null'); } return $select; }
protected function _afterSave(Mage_Core_Model_Abstract $object) { Mage::app()->cleanCache(array(Bubble_CmsTree_Block_Catalog_Navigation::CACHE_TAG)); if ($object->getStoreId() === '0' && $this->_tableTreeStoreExists()) { return parent::_afterSave($object); } return $this; }
protected function _afterSave(Mage_Core_Model_Abstract $object) { Mage::app()->cleanCache(array('CATALOG_NAVIGATION')); if ($object->getStoreId() === '0' && $this->_tableTreeStoreExists()) { return parent::_afterSave($object); } return $this; }