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

alexgreeneyes

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

alexgreeneyes's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

1

Reputation

  1. Вариант решения можно попробовать такой: Открываем файл: /system/library/document.php Находим следующий код: public function addLink($href, $rel) { $this->links[$href] = array( 'href' => $href, 'rel' => $rel ); } В нем заменяем $this->links[$href] на $this->links[(md5($href.$rel))] в итоге получается следующее: public function addLink($href, $rel) { $this->links[(md5($href.$rel))] = array( 'href' => $href, 'rel' => $rel ); } Далее в файле /catalog/controller/product/category.php (либо ищем такой же в модификациях) находим следующий код: if ($page == 1) { $this->document->addLink($this->url->link('product/category', $path), 'canonical'); } else { $this->document->addLink($this->url->link('product/category', $path . '&page='. $page), 'canonical'); } Изменяем на: if ($page == 1) { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id']), 'canonical'); } else { $this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id']), 'canonical'); } После этого canonical должен работать правильно, сразу говорю мне помогло, в вашем случае не гарантирую, но решил поделиться.
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.