Jump to content

[1.5.6.1] Bug mobile default theme next page


Recommended Posts

hello everybody,

 

I'm new at prestashop. 1.5.6.1 is the first version of PrestaShop i've ever worked with.

 

After installing it and adding some products, categories and subcategories i ran into to following problem.

 

When a category has more the 10 products, the pages (default) limits the viewed products to 10 and gives the ability to click on a page number or on a previous or next button. When i use the next or previous buttons every thing works fine. When i want to use the numbers i return to the home page.

 

Generated URL when clicking Next button: (works fine)

http://example.com/PrestaShop/index.php?id_category=23&controller=category&p=2

 

Generated URL when clicking page number: (doesn`t work)

http://example.com/PrestaShop/index.php?id_category=23&controller=category&p=2

 

I'm quite certain the problem is the & in the url. I don't know where to change this.

 

Any ideas.

 

Best regards,

 

Sidney 

Edited by flederflick (see edit history)
Link to comment
Share on other sites

Oke. After some debugging i found the problem in the themes/default/mobile/pagination.tpl file.

 

In line 62 i have changed 

href="{$link->goPage($requestPage, 1)|escape:'html'}"

into 

href="{$link->goPage($requestPage, 1)}"

In line 69 in changed

href="{$link->goPage($requestPage, $smarty.section.pagination.index)|escape:'html'}" 

Into

href="{$link->goPage($requestPage, $smarty.section.pagination.index)}"

And last but not least in line 74

href="{$link->goPage($requestPage, $pages_nb)|escape:'html'}"

Changed into

href="{$link->goPage($requestPage, $pages_nb)}"
Link to comment
Share on other sites

  • 7 months later...
×
×
  • Create New...