Jump to content
  • 0
Sign in to follow this  
steve_c

Changing products per page

Question

Hi all - tried searching Google but couldn't come up with any answers.

 

I have a 2 column product listing layout. I want my products per page to be in factors of 3.

 

I have it set to 12 products per page but on the dropdown at the bottom, the other options are 10, 20 and 50.

 

how do I change these values?

 

Thanks in advance

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Edit File FrontController.php:

 

public function pagination($nbProducts = 10) (standard)

 

Edit above and change all instances of numbers in this section to change products displayed per page

and to change drop down list to match.

 

So if you switch to 12 change the array line to 12,24,58

 

Also be sure and change the default products per page under preferences/products

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More