Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

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

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

Photo

Changing products per page


  • Please log in to reply
2 replies to this topic
steve_c

    PrestaShop Apprentice

  • Members
  • PipPip
  • 437 posts

Posted 11 August 2012 - 10:31 PM

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

tdr170

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2204 posts

Posted 12 August 2012 - 01:10 AM

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

steve_c

    PrestaShop Apprentice

  • Members
  • PipPip
  • 437 posts

Posted 12 August 2012 - 01:12 AM

That's fantastic thanks very much




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users