Jump to content

Pagination Page Not Found


Mr_Ridd

Recommended Posts

Hi

 

Got a bit of a strange issue. My shop version is 1.5.2.0.

 

I go to a category and, say for example, 10 products are showing. I then click on Page 2, which displays correctly.

 

Then I select 50 from the "products per page" drop-down box and it gives me a Page Not Found.

 

Any ideas?

Link to comment
Share on other sites

I made a work around but I think there is some backend code that's isn't using the page number correctly.

 

I added this to the tpl file...

 

function ChangeProductsPerPage()
{
 var elements = document.getElementsByName('p');

 if( elements.length > 0 )
 {
   elements[0].setAttribute('value','1');
 }

 document.productsform.submit();
}

 

And then I replaced the onclick of the Select box.

Link to comment
Share on other sites

Vekia, that wouldn't guarantee it yet, as you may choose 10/page first, then go to page 3, then click 50/page or so. I would just move it to page 1 whenever you change amount... (Or really calculate :

if nr of products*listvalue > current page*listvalue then stay on this page, else move to page 1

 

My 2 cents,

Pascal

  • Like 1
Link to comment
Share on other sites

Vekia, that wouldn't guarantee it yet, as you may choose 10/page first, then go to page 3, then click 50/page or so. I would just move it to page 1 whenever you change amount... (Or really calculate :

if nr of products*listvalue > current page*listvalue then stay on this page, else move to page 1

 

My 2 cents,

Pascal

 

you are absolutely right, thanks for your attention

Link to comment
Share on other sites

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...