From 0ff7163cba105afb91d5eb181a6bf3cb654dff3c Mon Sep 17 00:00:00 2001 From: Priyank Bolia Date: Wed, 20 Nov 2013 20:56:35 +0530 Subject: [PATCH] Adding a position order by clause. Adding a position order by clause. This way you can manage how the featured products will display on home page. You can manage the order from the PrestaShop backend, and thus you have full control on the display in the frontend. --- modules/homefeatured/homefeatured.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/homefeatured/homefeatured.php b/modules/homefeatured/homefeatured.php index 5d7ec5b57..a0e91af28 100644 --- a/modules/homefeatured/homefeatured.php +++ b/modules/homefeatured/homefeatured.php @@ -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,