protected function _processRow($row, $bypass = false) { // used for extraxml generation $this->setCurrentProdId($row['entity_id']); $this->setCurrentProdDate($this->_getDate($row)); $xml = parent::_processRow($row); if ($xml) { // skip Cat. Path Generation if ($bypass) { return $xml; } $link = $this->_getLinkType(); if ($link == 'canonical' || $link == 'both') { $this->_addUrl($xml); } // if previous row was allowed url if ($this->_canProcessCatPath()) { if ($xml) { // Generate category path links for product $urlProcessor = $this->_getCategoryPathUrlProcessor(); $urlProcessor->setCounter($this->_prodCatCounter)->setCatId(null)->process($this->getSitemap()); return false; } } // avoid to add 2 times ( above _addUrl() call do the job) return false; } }