문제

I have a problem when I select a layered navigation and I try to switch to the next page...

my pager link to an url like that http://www.examplesite.com/category.html#%21___SID=U&manufacturer=102&p=2 but it's disabling layered nav.

I guess Right url should be: http://www.examplesite.com/category.html?manufacturer=102&p=2 (this one is working right)

I checked toolbar.phtml, pager.phtml but I dont know why is displaying "#%21__...." instead of "?"

What file I should edit?

Thanks in advance

도움이 되었습니까?

해결책

I fixed this problem. Adding some str_replace("#%21","?","...")

First I edited my toolbar.phtml (/app/design/frontend/default/theme/template/catalog/product/list/toolbar.phtml)

line 55

<option value="<?php echo str_replace("#%21","?", $this->getLimitUrl($_key)) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>

line 72

<a href="<?php echo str_replace("#%21","?",$this->getModeUrl($_code)) ?>" title="<?php echo $_label ?>" class="<?php echo strtolower($_code); ?>"><?php echo $_label ?></a>&nbsp;

line 103

 <option value="<?php echo str_replace("#%21","?",$this->getOrderUrl($_key, 'asc')) ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>

And my pager.phtml

line 69

    <li><a href="<?php echo str_replace("#%21","?",$this->getPageUrl($_page)) ?>"><?php echo $_page ?></a></li>

I hope this helps someone who is having the same problem I had.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top