Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

rosljk

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

rosljk's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Я придумал такой выход из ситуации: 1) файл catalog\controller\common\header.php (массив $data['categories'][] = array() ) в нем есть ключ 'href'. Было 'href' => $this->url->link('product/category', 'path=' . $category['category_id']) заменил на 'href' => substr_replace($this->url->link('product/category', 'path=' . $category['category_id']),"category/",15,0) где 15 -это кол символов в домене 2) файл catalog\controller\common\seo_pro.php было // Decode URL if (!isset($this->request->get['_route_'])) { $this->validate(); } else { $route_ = $route = $this->request->get['_route_']; заменил на // Decode URL if (!isset($this->request->get['_route_'])) { $this->validate(); } else { $mystring = $this->request->get['_route_']; $findme = 'category/'; $pos = strpos($mystring, $findme); if ($pos === false) { $route = $this->request->get['_route_']; $route_ = $this->request->get['_route_']; }else{ $route = str_replace("category/", "", $this->request->get['_route_']); $route_ = str_replace("category/", "", $this->request->get['_route_']); } и 3) в файле \catalog\controller\product\category.php где есть ключ массива "href" заменил на такой формат 'href' => substr_replace(старый url,"category/",15,0)
  2. стоит по дефолту seo pro, я так понимаю что чужно копатся в catalog/controller/common/seo_pro.php и seo_url.php?
  3. Всем привет столкнулся с такой проблемой по чпу. Нужна ссылка вида http://site.ru/category/homecat1/subcat1/subcat2 а сайт позволяет http://site.ru/homecat1/subcat1/subcat2 Пробовал изменять таблицу url_alias ничего не помогло. Если коротко то нужно добавить приставку category к главной категории
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.