Μια απλή λύση για να λυθεί αυτό το πρόβλημα είναι να γίνουν μερικές μετατροπές στο:
/system/library/pagination.php
Ψάξτε για
1
2
3
4
5
6
7
8
|
if ($page > 1) {
$output .= ‘<li><a href=”‘ . str_replace(‘&page={page}’, ”, $this->url) . ‘”>’ . $this->text_first . ‘</a></li>’;
if($page – 1 === 1){
$output .= ‘<li><a href=”‘ . str_replace(‘&page={page}’, ”, $this->url) . ‘”>’ . $this->text_prev . ‘</a></li>’;
} else {
$output .= ‘<li><a href=”‘ . str_replace(‘{page}’, $page – 1, $this->url) . ‘”>’ . $this->text_prev . ‘</a></li>’;
}
}
|
και αντικαταστήστε με
1
2
3
4
5
6
7
8
9
|
if ($page > 1) {
$output .= ‘<li><a href=”‘ . str_replace(array(‘&page={page}’, ‘?page={page}’), ”, $this->url) . ‘”>’ . $this->text_first . ‘</a></li>’;
if ($page – 1 === 1) {
$output .= ‘<li><a href=”‘ . str_replace(array(‘&page={page}’, ‘?page={page}’), ”, $this->url) . ‘”>’ . $this->text_prev . ‘</a></li>’;
} else {
$output .= ‘<li><a href=”‘ . str_replace(‘{page}’, $page – 1, $this->url) . ‘”>’ . $this->text_prev . ‘</a></li>’;
}
}
|
επίσης βρείτε
1
|
$output .= ‘<li><a href=”‘ . str_replace(‘&page={page}’, ”, $this->url) . ‘”>’ . $i . ‘</a></li>’;
|
και αντικαταστήστε με
1
|
$output .= ‘<li><a href=”‘ . str_replace(array(‘&page={page}’, ‘?page={page}’), ”, $this->url) . ‘”>’ . $i . ‘</a></li>’;
|
Πηγή: http://forum.opencart-russia.ru/threads/oshibka-paginacii-page-page-pri-seo.4583/