СЕО (SEO) пагинация Opencart

1. /catalog/controller/product/category.php
if ($category_info[‘seo_title’]) {
$this->document->setTitle($category_info[‘seo_title’]);
} else {
$this->document->setTitle($category_info[‘name’]);
}

меняем на

if ($category_info[‘seo_title’]) {
if ($page > 1) {
$this->document->setTitle($category_info[‘seo_title’].’- Страница:’ .$page );
}
else {
$this->document->setTitle($category_info[‘seo_title’]);
}
} else {
$this->document->setTitle($category_info[‘name’]);
}

2. /catalog/controller/product/manufacturer.php

if ($manufacturer_info[‘seo_title’]) {
$this->document->setTitle($manufacturer_info[‘seo_title’]);
} else {
$this->document->setTitle($manufacturer_info[‘name’]);

}

меняем на

if ($manufacturer_info[‘seo_title’]) {
if ($page > 1) {
$this->document->setTitle($manufacturer_info[‘seo_title’].’ — Страница: ‘ .$page );
}
else {
$this->document->setTitle($manufacturer_info[‘seo_title’]);
}
} else {
if ($page > 1) {
$this->document->setTitle($manufacturer_info[‘name’.’ — Страница: ‘ .$page]);
} else {
$this->document->setTitle($manufacturer_info[‘name’]);
}
}

РубрикиSEO