Jump to content

Change the number of visible page numbers


ikran

Recommended Posts

Hi, I'm using prestashop and I have many products.

When I open a product category, 12 products are displayed on the page and then below I have the page numbers that I can click to change pages and see the next products.

The page numbers are done like this:

<   1   2   3   ...   524   >

for example, when I click on 3, page 3 opens and the page numbers change like this:


<   1   2   3   4   ...   524   >


When I click on 4, the page numbers become:

<   1   ...   3   4   5   ...   524   >


When I click on the 5, the page numbers become:

<   1   ...   4    5   6   ...   524   >

Where can I find the code that controls how many page numbers should be visible?

Link to comment
Share on other sites

On 9/29/2023 at 1:33 PM, ikran said:

Hi, I'm using prestashop and I have many products.

When I open a product category, 12 products are displayed on the page and then below I have the page numbers that I can click to change pages and see the next products.

The page numbers are done like this:

<   1   2   3   ...   524   >

for example, when I click on 3, page 3 opens and the page numbers change like this:


<   1   2   3   4   ...   524   >


When I click on 4, the page numbers become:

<   1   ...   3   4   5   ...   524   >


When I click on the 5, the page numbers become:

<   1   ...   4    5   6   ...   524   >

Where can I find the code that controls how many page numbers should be visible?

Hi,

May be Look for a template / controller file that is related to product listing or category pages to control the pagination.
Thanks!

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