// Context part 18
This commit is contained in:
@@ -45,11 +45,11 @@ class PricesDropControllerCore extends FrontController
|
||||
parent::process();
|
||||
|
||||
$this->productSort();
|
||||
$nbProducts = Product::getPricesDrop((int)self::$cookie->id_lang, NULL, NULL, true);
|
||||
$nbProducts = Product::getPricesDrop($this->context->language->id, NULL, NULL, true);
|
||||
$this->pagination($nbProducts);
|
||||
|
||||
self::$smarty->assign(array(
|
||||
'products' => Product::getPricesDrop((int)self::$cookie->id_lang, (int)$this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay),
|
||||
$this->context->smarty->assign(array(
|
||||
'products' => Product::getPricesDrop($this->context->language->id, (int)$this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay),
|
||||
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
|
||||
'nbProducts' => $nbProducts,
|
||||
'homeSize' => Image::getSize('home')
|
||||
@@ -59,7 +59,7 @@ class PricesDropControllerCore extends FrontController
|
||||
public function displayContent()
|
||||
{
|
||||
parent::displayContent();
|
||||
self::$smarty->display(_PS_THEME_DIR_.'prices-drop.tpl');
|
||||
$this->context->smarty->display(_PS_THEME_DIR_.'prices-drop.tpl');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user