Exemplo n.º 1
0
 /**
  * Get new store category path
  *
  * @param $categoryPath
  * @return string
  */
 protected function _getNewStoreCategoryPath($categoryPath)
 {
     $categoryId = $this->_categoryResource->getCategoryIdByRequestPath($categoryPath, $this->_prevStoreId);
     if (!empty($categoryId)) {
         $rewrite = $this->_categoryResource->getRewriteByCategoryId($categoryId, $this->_storeId);
         if (!empty($rewrite)) {
             $categoryPath = $rewrite['request_path'];
         }
     }
     return $categoryPath;
 }