Hi, we have the facility to ‘Show All’ so that people can browse all the products in a category.
However when this is set the setting is passed on so that when a customer moves onto a new category, all the products are shown there as well. If we have a category with a lot of products this slows down the category view and can cause unneccessary traffic and calls to the server. Ideally I’d like to have it reset itself back to 16 when the customer moves to a new category.
I have taken a look in the toolbar.phtml and I can see the code inside the limiter div.
<label><?php echo $this->__('Show') ?></label>
foreach ($this->getAvailableLimit() as $_key=>$_limit): ?>
<option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
<?php echo $_limit ?>
<?php endforeach; ?>
</select> <?php echo $this->__('per page ') ?>
There seems to be a variable passed around that limits the number shown. I thought if I set the variable $_limit to 16 that would do the trick - Sadly not.
Anyone got any ideas?