コード例 #1
0
 /**
  * Add the groupscatalog filter to the select object so the number of search
  * results on the pager is correct.
  *
  * @return Varien_Db_Select
  */
 public function getSelectCountSql()
 {
     $select = parent::getSelectCountSql();
     if (Mage::helper('netzarbeiter_groupscatalog2')->isModuleActive()) {
         $customerGroupId = Mage::helper('netzarbeiter_groupscatalog2')->getCustomerGroupId();
         Mage::getResourceSingleton('netzarbeiter_groupscatalog2/filter')->addGroupsCatalogFilterToSelectCountSql($select, $customerGroupId, $this->getStoreId());
     }
     return $select;
 }