Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Recommended Posts

Добрый гдень, как исправить и почему они появились ? "Страница является копией. Отправленный URL не выбран в качестве канонического"

https://prnt.sc/13fjc8y

А ик же есть икие и как с ними потому чтороться ? "Вариант страницы с тегом canonical"

https://prnt.sc/13fjom8

Link to comment
Share on other sites


24 минуты назад, Krasulin сказал:

а как ик сгделать ?

Для начала показать сайт.. затем показать страницы ггде есть проблемы.. 

Link to comment
Share on other sites


Обновите спотому чторку ocStore до 2.3.0.2.4

Или в категориях (controller/product/category.php) им ггде canonical

сгделайте ик:

Спойлер
			// http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html
			$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'], true), 'canonical');

			if ($page == 2)  {
				$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'], true), 'prev');
			} elseif($page > 2)   {
				$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page - 1), true), 'prev');
			}

			if ($limit && ceil($product_total / $limit) > $page) {
				$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page + 1), true), 'next');
			}

 

 

Link to comment
Share on other sites

Только что, Krasulin сказал:

в ней суещёственные изменения ?

Не знаю я не пользуюсь ocStore, сами оэтонивайте при скаливании файла обновлений.

Link to comment
Share on other sites

41 минуту назад, buslikdrev сказал:

Обновите спотому чторку ocStore до 2.3.0.2.4

Или в категориях (controller/product/category.php) им ггде canonical

сгделайте ик:

  Скрыть контент

			// http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html
			$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'], true), 'canonical');

			if ($page == 2)  {
				$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'], true), 'prev');
			} elseif($page > 2)   {
				$this->document->addLink($this->url->link('product/category', 'path=' . $category_info['category_id'] . '&page='. ($page - 1), true), 'prev');
			}

 

 

Я в этих гделах несилен

Нужно заменить этот код https://prnt.sc/13fnlsb на тот что вы написали ?

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.