yacorro Posted August 8, 2013 Share Posted August 8, 2013 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 More sharing options...
vekia Posted August 8, 2013 Share Posted August 8, 2013 you want to define this number manually? if so, you can check the themes/your_theme/category.tpl file Link to comment Share on other sites More sharing options...
yacorro Posted August 8, 2013 Author Share Posted August 8, 2013 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 More sharing options...
vekia Posted August 8, 2013 Share Posted August 8, 2013 hmm im lost now just one question to clarify: you're talking about category page where subcategories appear or about categories block in the one of the column? Link to comment Share on other sites More sharing options...
yacorro Posted August 8, 2013 Author Share Posted August 8, 2013 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 More sharing options...
yacorro Posted August 8, 2013 Author Share Posted August 8, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now