/** * Get scope name and scopeId * */ protected function _getScope() { $is_csgroup = Mage::app()->getRequest()->getParam('is_csgroup', false); if (!$is_csgroup) { return parent::_getScope(); } if ($this->getStore()) { $scope = 'stores'; $scopeId = (int) Mage::getConfig()->getNode('stores/' . $this->getStore() . '/system/store/id'); } elseif ($this->getWebsite()) { $scope = 'websites'; $scopeId = (int) Mage::getConfig()->getNode('websites/' . $this->getWebsite() . '/system/website/id'); } else { $scope = 'default'; $scopeId = 0; } $this->setScope($scope); $this->setScopeId($scopeId); }