Skip to content

Commit

Permalink
fix for #97 for correct mode pickup based on: getparam > sessionvalue…
Browse files Browse the repository at this point in the history
… > storeconfig
  • Loading branch information
Jan Myszkier authored and gsomoza committed Jul 8, 2015
1 parent cb53a3c commit 8909810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/community/Strategery/Infinitescroll/Block/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8909810

Please sign in to comment.