на Prestashop 1.6.0.9 работает?
Для prestashop 1.6 код необходимо немного переписать:
Файл:
/classes/controller/FrontController.php после:
Код:
$compared_products = array();
if (Configuration::get('PS_COMPARATOR_MAX_ITEM') && isset($this->context->cookie->id_compare))
$compared_products = CompareProduct::getCompareProducts($this->context->cookie->id_compare);
добавьте подобный код:
Код:
if (get_class($this->context->controller) == 'CategoryController')
{
$this->pagination($this->category->getProducts(NULL, NULL, NULL, NULL, NULL, true));
$p = $this->context->smarty->getTemplateVars('p');
$n = $this->context->smarty->getTemplateVars('n');
if($p != $this->context->smarty->getTemplateVars('stop'))
$this->context->smarty->assign('next', $this->context->link->goPage($this->context->smarty->getTemplateVars('current_url'), $p+1));
if($p != 1)
$this->context->smarty->assign('prev', $this->context->link->goPage($this->context->smarty->getTemplateVars('current_url'), $p-1));
}