示例#1
0
 protected function _preparePage()
 {
     if ($this->getCustomer() !== null) {
         $this->getCollection()->setPageSize(5)->setCurPage(1);
     } else {
         parent::_preparePage();
     }
 }
示例#2
0
 /**
  * @nelkaake -a 15/12/10: TODO move this to a decorator class.
  */
 protected function _preparePage()
 {
     if (!$this->getJoinCategories()) {
         return parent::_preparePage();
     }
     $this->getCollection()->getSelect()->reset(Zend_Db_Select::GROUP);
     parent::_preparePage();
     $category_decorator = Mage::getModel('enhancedgrid/product_collection_category_decorator');
     $category_decorator->setCollection($this->getCollection())->addCategories();
     return $this;
 }
示例#3
0
 protected function _preparePage()
 {
     parent::_preparePage();
     $this->_page = (int) $this->getParam($this->getVarNamePage(), $this->_defaultPage);
     $this->_limit = (int) $this->getParam($this->getVarNameLimit(), $this->_defaultLimit);
 }