Сообщение #2 zyxer » 31.10.2019, 09:21
Как вариант в view/ProductsView.php перед строками
Код: Выделить всё
if($this->set_canonical) {
$this->meta['h1'] = $this->meta['title'] = $this->meta['keywords'] = $this->meta['description'] = '';
}
добавить
Код: Выделить всё
if (in_array($this->catalog_type, array('all-products', 'bestsellers', 'discounted'))) {
$this->set_canonical = true;
}
Как вариант в view/ProductsView.php перед строками
[code]if($this->set_canonical) {
$this->meta['h1'] = $this->meta['title'] = $this->meta['keywords'] = $this->meta['description'] = '';
}[/code] добавить [code]if (in_array($this->catalog_type, array('all-products', 'bestsellers', 'discounted'))) {
$this->set_canonical = true;
}[/code]
Всё сказанное мной, является лично моим мнением, и не является официальной позицией OkayCMS