![How To Turn The “Number Of Items” Drop-Down List Into Hyperlinks](https://belvg.com/blog/wp-content/uploads/2013/01/How-to-turn-the-“Number-of-Items”-drop-down-list-into-hyperlinks1.jpg )
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> |
![Igor Dragun](https://belvg.com/blog/wp-content/uploads/2019/03/Igor-Dragun.png.pagespeed.ce.Qm5MZzkFbb.png)
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