// add colors on some controllers

This commit is contained in:
Rémi Gaillard
2013-10-09 16:47:47 +02:00
parent e7d7e2f1ab
commit edddac8a0c
3 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -49,8 +49,11 @@ class PricesDropControllerCore extends FrontController
$nbProducts = Product::getPricesDrop($this->context->language->id, null, null, true);
$this->pagination($nbProducts);
$products = Product::getPricesDrop($this->context->language->id, (int)$this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay);
$this->addColorsToProductList($products);
$this->context->smarty->assign(array(
'products' => Product::getPricesDrop($this->context->language->id, (int)$this->p - 1, (int)$this->n, false, $this->orderBy, $this->orderWay),
'products' => $products,
'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
'nbProducts' => $nbProducts,
'homeSize' => Image::getSize(ImageType::getFormatedName('home')),