getRequest()->getParam('store_id'); if($storeId == null) { $storeId = Mage::app()->getStore()->getId(); } return $storeId; } protected function _getCustomerGroupId() { //customer group id $custGroupID = (int) $this->getRequest()->getParam('cid'); if($custGroupID == null) { $custGroupID = Mage::getSingleton('customer/session')->getCustomerGroupId(); } return $custGroupID; } }