Bug – URL in product list toolbar by filter

Hi team,

I found an error on URL of product list toolbar when filter is applied. Process explain as following:

On Products List Page with various pages on toolbar:

1- We can filter by category or attribute filed like Manufacturer
2- To apply filter the current URL show the filter variable manufacturer=61 and product list is ok
3- On mouse over toolbar filtered pages numbers the destination URL must show the filters variables "page or p" and "manufacturer" too, like this: "?manufacturer=61&p=2" (See 4 step in pictures)

http://www.hobbystation.cl/docs/example_productlist.png

Well. We are agree, right?

Now see the JM_Rasite product list page picture:

http://www.hobbystation.cl/docs/jm_r…roductlist.png

On mouse over toolbar filtered pages numbers the destination URL do not show the filters variables, only page variable: "?p=2". Then on click the "next page" or "page number" on toolbar, "manufacturer" filter is lost and result product list is wrong.

The first picture is from duplicate store only for category, products and attributes. Second picture is one of my development JM_Rasite theme .

Please note that I have researched it with four Magento stores JM_Rasite theme and Default theme for Magento versions 1.4.0, 1.4.01 and 1.4.1.1 too.

Regards,

Richard

1 answer

Profile photo of Eddy Ricardo Santos 340.00 $tone September 1, 2010
Public

Well my friends.

After many days behind this issue i found a solution for 1.4.1.1 Magento version with last JM_Rasite Theme version (non 1.1.1)

Open file: app/design/frontend/default/jm_rasite/template/catalog/product/list/toolbar.phtml

search:

<td class="pages">
<strong><?php echo $this->__(‘Page:’) ?></strong>
<ol>
<?php if (!$this->isFirstPage()): ?>
<li><a href="?p=<?php echo $this->getCurrentPage()-1 ?>"><img src="<?php echo $this->getSkinUrl(‘images/pager_arrow_left.gif’) ?>" alt="<?php echo $this->__(‘Previous’) ?>" /></a></li>
<?php endif ?>
<?php for($i=1; $i<= $this->getLastPageNum(); $i++): ?>
<?php if ( $this->getCurrentPage() == $i ): ?>
<li><span class="on"><?php echo $i ?></span></li>
<?php else: ?>
<li><a href="?p=<?php echo $i ?>"><?php echo $i ?></a></li>
<?php endif ?>
<?php endfor; ?>
<?php if ( $this->getCurrentPage() != $this->getLastPageNum() ): ?>
<li><a href="?p=<?php echo $this->getCurrentPage()+1 ?>"><img src="<?php echo $this->getSkinUrl(‘images/pager_arrow_right.gif’) ?>" alt="<?php echo $this->__(‘Next’) ?>" /></a></li>
<?php endif ?>
</ol>
</td>

Replace with:

<td class="pages">
<?php echo $this->getPagerHtml() ?>
</td>

It is all. URL is filtering again with category and attribute fields. Needed solution for 1.1 JM_Rasite on Magento 1.4.0.1

Regards,

Richardmax

#1

This question is now closed

Written By

Comments