Merge pull request #496 from matthieume/master

[*] FO : NewProductController: new products page must display latest products first.
This commit is contained in:
Damien Metzger
2013-06-14 00:28:39 -07:00
@@ -47,6 +47,13 @@ class NewProductsControllerCore extends FrontController
$this->productSort();
// Override default configuration values: cause the new products page must display latest products first.
if (!Tools::getIsset('orderway') || !Tools::getIsset('orderby'))
{
$this->orderBy = 'date_add';
$this->orderWay = 'DESC';
}
$nbProducts = (int)Product::getNewProducts(
$this->context->language->id,
(isset($this->p) ? (int)($this->p) - 1 : null),