Add product filter limit at the bottom of the categories
Posted: Mon Jan 21, 2013 10:27 pm
Hello,
I want to repeat the select that limits the number of products you see on the categories also at the bottom of the page.
However when I copy the code to the botton of the page (inside the condicional of <?php if ($products) { ?> ) I can see the select but inside the select there is no any number to sort... I mean at the top of the category the select of the limit is correct but in the botton there is nothing inside the limit.
Any idea why I can not repeat this code at the end of the category in order to help my customers to select the limit they want also at the bottom?
Thank you.
I want to repeat the select that limits the number of products you see on the categories also at the bottom of the page.
However when I copy the code to the botton of the page (inside the condicional of <?php if ($products) { ?> ) I can see the select but inside the select there is no any number to sort... I mean at the top of the category the select of the limit is correct but in the botton there is nothing inside the limit.
Any idea why I can not repeat this code at the end of the category in order to help my customers to select the limit they want also at the bottom?
Code: Select all
<div class="limit"><b><?php echo $text_limit; ?></b>
<select onchange="location = this.value;">
<?php foreach ($limits as $limits) { ?>
<?php if ($limits['value'] == $limit) { ?>
<option value="<?php echo $limits['href']; ?>" selected="selected"><?php echo $limits['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $limits['href']; ?>"><?php echo $limits['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>