Jump to content

Custom page controller wrong pagination url


Recommended Posts

Hi all, im try to add a custom page to display all products following this tutorial

 

http://nemops.com/creating-new-pages-in-prestashop/#.Vy-hzTFtKHM

 

Adapting content to version 1.6.1.4

But i'm facing a problem when i change the element per page, using select form, the generated url is wrong

 

the new page url is /index.php?fc=module&module=testmodule&controller=allproducts

 

but when i change element per page the url becoming

 

/index.php?fc=module&module=testmodule&n=xx missing the controller parameter.

 

I've tried to passing controller value as parameter in getModuleLink(), or setting current_url for pagination.tpl using the getModuleLink()

 

but with no luck, conducting to page not found.

 

Any help is appreciated

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...