Change the number of items/page for a single category
Posted: Fri Nov 15, 2013 9:38 pm
I have created a category for Promotions and I want it to have a certain number of items/page which is different from the default items/page from the config and I also want it to default to GRID View without affecting the cookie that stores the default LIST View.
The Grid View thingy I figured it out already but I'm stuck with the first one.
What I'm trying to achieve is the same result as a link like this http://www.mysite.com/promotions?limit=24, but I want this behaviour by default for that category alone without the extra parameter in the link.
In /www/catalog/view/theme/{theme_name}/template/product/category.tpl i found this :
so I presume that $limits['value'] is where I should change the value but I just can't figure it out where should I place some code like :
or
Is this the right way to achieve what I'm looking for ?
The Grid View thingy I figured it out already but I'm stuck with the first one.
What I'm trying to achieve is the same result as a link like this http://www.mysite.com/promotions?limit=24, but I want this behaviour by default for that category alone without the extra parameter in the link.
In /www/catalog/view/theme/{theme_name}/template/product/category.tpl i found this :
Code: Select all
<?php if ($limits['value'] == $limit) { ?>
Code: Select all
$limits['value'] = 24;
Code: Select all
$limit = 24;