Exemple #1
0
 /**
  * Do not unset category filter, instead restore it from the 'previous_category_id' key
  * otherwise it cause error with on of the enterprise modules.
  *
  * @return Varien_Db_Select
  */
 public function getProductCountSelect()
 {
     $currentSelect = clone $this->_select;
     $currentProductLimitations = $this->_productLimitationFilters;
     if (isset($this->_productLimitationFilters['previous_category_id'])) {
         $this->_productLimitationFilters['category_id'] = $this->_productLimitationFilters['previous_category_id'];
     }
     $this->_applyProductLimitations();
     $select = parent::getProductCountSelect();
     $this->_select = $currentSelect;
     $this->_productLimitationFilters = $currentProductLimitations;
     return $select;
 }