Jump to content

how can I change pagination in category page in 1.4.4.0


cerberus22

Recommended Posts

Hi

 

How can I change the amount displayed on the category page,

 

I have changed the amount shown in back office.

 

Now I want to change the amount displayed in the dropdown menu on category page from 10. 20. 50 To 20, 50, 100, and add "View all"

 

can this be done ?

 

using prestashop v1.4.4.0

 

All the best,

Steve

Link to comment
Share on other sites

  • 1 month later...

I'm trying to do that, but in 1.4.3

 

Here what I have done:

 

in .../classes/FrontController.php

 

find this (535 row):

 

public function pagination($nbProducts = 10)

{

if (!self::$initialized)

$this->init();

 

$nArray = (int)(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array((int)(Configuration::get('PS_PRODUCTS_PER_PAGE')), 10, 20, 50) : array(10, 20, 50);

 

and replace with:

 

public function pagination($nbProducts = 10)

{

if (!self::$initialized)

$this->init();

 

$nArray = (int)(Configuration::get('PS_PRODUCTS_PER_PAGE')) != 10 ? array((int)(Configuration::get('PS_PRODUCTS_PER_PAGE')), 20, 50, 100) : array(20, 50, 100);

 

Unfortunately, I don't know how to put "View all" so that It's work. If somebody know, pls let us know

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