Per Page dropdown disappears for categories with Featured Products
Hi,
I've just noticed that on one of my category pages I have no 'per page' selector. If I remove the featured products, it reappears. It also appears as it should on other pages, where no featured products are defined.
Although I've hacked about a bit in my template files, I can't see how any of my changes might have affected this. Has anyone else come across it? More importantly, has anyone else come across it and fixed it?
It seems to be something to do with the following statement in main/navigation.tpl (at the bottom):
{if $per_page eq "Y" and $total_items gte $per_page_values.0}
If a featured product is defined, then $total_items seems to be the number of featured products, not the total number of items on the page. That's my impression anyway, as I've not done a great deal of testing...
Any thoughts? I'm not really sure where to look.
Cheers
Welly
|