gociak Posted January 10, 2013 Share Posted January 10, 2013 Hi, Im trying to change "items per page" selectbox to hyperlinks on products page. Does anybody know where I can find string which process the selectbox $_GET? Link to comment Share on other sites More sharing options...
Dzianis Yurevich Posted January 11, 2013 Share Posted January 11, 2013 You need to create a form <input type="hidden" name="n" id="nb_item" value="10" /> instead of selectBox links of the following form: <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: <script> function changeNbItem (count) { $ ('# nb_item'). val (count); $ ('form.nbrItemPage'). submit () } </ script> 1 Link to comment Share on other sites More sharing options...
Recommended Posts