From aab66997da240f69d78ba80b3982bdec09fa28f8 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 30 Sep 2011 07:22:42 +0000 Subject: [PATCH] // CaregoryController : FixBug : Product list must be assigned to the template AFTER being calculated git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8912 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/front/CategoryController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/front/CategoryController.php b/controllers/front/CategoryController.php index ef9ad057c..0c864ccab 100644 --- a/controllers/front/CategoryController.php +++ b/controllers/front/CategoryController.php @@ -88,6 +88,10 @@ class CategoryControllerCore extends FrontController else if (isset($this->context->customer->id_guest)) $this->context->smarty->assign('compareProducts', CompareProduct::getGuestCompareProducts($this->context->customer->id_guest)); + $this->assignScenes(); + if ($this->category->id != 1) + $this->assignProductList(); + $this->productSort(); $this->context->smarty->assign(array( 'category' => $this->category, @@ -106,9 +110,6 @@ class CategoryControllerCore extends FrontController 'suppliers' => Supplier::getSuppliers() )); - $this->assignScenes(); - if ($this->category->id != 1) - $this->assignProductList(); $this->setTemplate(_PS_THEME_DIR_.'category.tpl'); }