Jump to content

Number of products on page per category


Recommended Posts

Hi,

 

In which file there is code responsible for number of products shown on on category page?

I'd like add some {if} condition so I could display different number of product depend on category.

Example:

category1 - 16 products (this is my default set in BO)

category2 - 4 products

 

Thx for help

Link to comment
Share on other sites

Yeah I'd liek to set it manually cause i need to set different values depend on category.

Anyhow I cant see anything connected with numer of products per page in category.tpl file:/

Category.tpl include block-list.tpl and pagination.tpl, buit still I'm not able to find the spot responsible for this.

Link to comment
Share on other sites

I'm talking about categories pages. I got two categories A and B (both accesible form main menu). There is no subcategories.

So what i'm trying to achive is :

 

16 products per page in category A (this is what i set in BO)

1 product per page in category B

Link to comment
Share on other sites

How about setting default value to the product nbr?

In FrontController.php i've changed pagination function so now in dropbox on category site i got 1...16..20.

How set it to 1 by default - but as i need to add if condition - how to set it in code?

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