Merge pull request #1003 from priyank/patch-1

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