PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Changing products per page

2 replies to this topic
#1
steve_c

    PrestaShop Apprentice

  • Members
  • PipPip
  • 405 posts
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

#2
tdr170

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1671 posts
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
-------------------------------------------------------------------------------
Did we help, If so give us a like, it lets others know we can help
-------------------------------------------------------------------------------

#3
steve_c

    PrestaShop Apprentice

  • Members
  • PipPip
  • 405 posts
That's fantastic thanks very much