Adding Hits per page drop down

I need to add Product per page drop down for Magento 2.1 it is done ? I tried the code snippets in this

Hello @kalidusachinthal,

you can see here how it can be done: User defined number of results per page - #2 by jan.petr

I just try add the method and passed parameters.but it didn’t work as expected.but I just add the search.addWidget function after the search variable is initialized.then it works . do you think that’s ok ?


Yes, it’s ok. You need to put it between it’s initialization and call of search.start();

yes after this actuallty
var search = algoliaBundle.instantsearch(instantsearchOptions);


1 Like