Issue:
Error display static block not right on the each of category when filter in block ‘Shop by’ on left side bar
Solution:
Please go to go to app/code/core/Mage/Catalog/Model/Layer/Filter and open item.php and find:
| 1 2 3 4 5 6 7 8 | public function getUrl()     {         $query = array(             $this->getFilter()->getRequestVar()=>$this->getValue(),             Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls         );         return Mage::getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true, '_query'=>$query));     } | 
=> change to:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | /*public function getUrl()     {         $query = array(             $this->getFilter()->getRequestVar()=>$this->getValue(),             Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls         );*/         //return Mage::getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true, '_query'=>$query));     /*}*/ public function getUrl()     {         if ($this->getFilter() instanceof Mage_Catalog_Model_Layer_Filter_Category) {             $category = Mage::getModel('catalog/category')->load($this->getValue());             $query = array(                 $this->getFilter()->getRequestVar()=>$this->getValue(),                 Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls             );             return $category->getUrl() . '?cat=' . $query['cat'];         } else {             $query = array(                 $this->getFilter()->getRequestVar()=>$this->getValue(),                 Mage::getBlockSingleton('page/html_pager')->getPageVarName() => null // exclude current page from urls             );             return Mage::getUrl('*/*/*', array('_current'=>true, '_use_rewrite'=>true, '_query'=>$query));         }     } |