Exemplo n.º 1
0
 protected function _postProcess()
 {
     // for separate category
     // or in case we have chosen only category path
     if (!$this->_counter) {
         $this->_initCounter();
     }
     // in case there are no product
     if ($this->_counter) {
         $extraCounter = new Varien_Data_Collection();
         $extraCounter->addItem($this->_imageCounter);
         $extraCounter->addItem($this->_prodCatCounter);
         $this->_counter->setExtraCounter($extraCounter);
     }
     parent::_postProcess();
 }
Exemplo n.º 2
0
 protected function _postProcess()
 {
     if ($this->getSitemap()->isSepCategory()) {
         if ($this->_counter) {
             $extraCounter = new Varien_Data_Collection();
             $extraCounter->addItem($this->_prodCounter);
             $extraCounter->addItem($this->_imageCounter);
             $this->_counter->setExtraCounter($extraCounter);
         }
     }
     parent::_postProcess();
 }