示例#1
0
文件: Price.php 项目: rcclaudrey/dev
 public function getItemsCount()
 {
     $cnt = parent::getItemsCount();
     if ($this->calculateRanges()) {
         $hide = Mage::getStoreConfig('amshopby/general/hide_one_value') && $cnt == 1;
     } else {
         $min = $this->getMinValue();
         $max = $this->getMaxValue();
         $hide = $min == $max;
     }
     return $hide ? 0 : $cnt;
 }
示例#2
0
文件: Price.php 项目: victorkho/telor
 public function getItemsCount()
 {
     $cnt = parent::getItemsCount();
     $checkForOne = $this->calculateRanges() && Mage::getStoreConfig('amshopby/general/hide_one_value');
     return $cnt == 1 && $checkForOne ? 0 : $cnt;
 }