Merge pull request #1003 from priyank/patch-1

[-] FO : Homefeatured adding a position order by clause.
This commit is contained in:
Gregory Roussac
2013-11-20 07:29:19 -08:00
+1 -1
View File
@@ -120,7 +120,7 @@ class HomeFeatured extends Module
{
$category = new Category(Context::getContext()->shop->getCategory(), (int)Context::getContext()->language->id);
$nb = (int)Configuration::get('HOME_FEATURED_NBR');
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8));
$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 8), "position");
$this->smarty->assign(array(
'products' => $products,