From 8909810f8049ad6dad8a42050e74dca0fc433447 Mon Sep 17 00:00:00 2001 From: Jan Myszkier Date: Wed, 8 Jul 2015 10:46:36 +0200 Subject: [PATCH] fix for #97 for correct mode pickup based on: getparam > sessionvalue > storeconfig --- app/code/community/Strategery/Infinitescroll/Block/Init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/code/community/Strategery/Infinitescroll/Block/Init.php b/app/code/community/Strategery/Infinitescroll/Block/Init.php index 4d21e09..e81e10d 100644 --- a/app/code/community/Strategery/Infinitescroll/Block/Init.php +++ b/app/code/community/Strategery/Infinitescroll/Block/Init.php @@ -50,7 +50,8 @@ public function getLoaderImage() public function getProductListMode() { // user mode - if ($currentMode = $this->getRequest()->getParam('mode')) { + $currentMode = $this->getRequest()->getParam('mode') ? $this->getRequest()->getParam('mode') : Mage::getSingleton('catalog/session')->getDisplayMode(); + if ($currentMode) { switch($currentMode){ case 'grid': $productListMode = 'grid';