Turning the “Number of Items” drop-down list into hyperlinks on the Prestashop product category page is easy. You need to create a form <input type=”hidden” name=”n” id=”nb_item” value=”10″ /> instead of selectBox links of the following form:
1 2 |
<a href="javascript:void(0)" onclick="changeNbItem(20)"> 20 items per page </ a> <a href="javascript:void(0)" onclick="changeNbItem(30)"> 30 items per page </ a> |
Besides you need to place the following JS-code on the page:
1 2 3 4 5 6 |
<script> function changeNbItem (count) { $('#nb_item').val(count); $('form.nbrItemPage').submit() } </ script> |
Partner With Us
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Talk to Igor