HomeHome Product Discus... Product Discus...RazorCartRazorCartProduct List - choose number of items to displayProduct List - choose number of items to display
Previous
 
Next
New Post
7/16/2017 5:50 PM
 
Product List - How do I set it up so the end user can select how many products to show on a page?
 
New Post
7/17/2017 2:49 PM
 
Navigate to your product listing module settings and scroll down to the setting titled "Pager Page Size" and enter the number of products you want and click save to save your changes.
 
New Post
7/17/2017 4:27 PM
 
How do I get so the end user can choose the number of items to display?

For example, a dropdown list of options (e.g. 5, 10, 25, etc) and when they choose one of those options, the number of products displayed match that number.
 
New Post
7/17/2017 5:59 PM
 
There is no setting for this, you need to edit the view and create a custom dropdown. Next, use ngChange on your custom dropdown-menu to do the following

list.pageSize = %value%
list.rebindProducts()
 
New Post
7/25/2017 12:22 AM
 
This is how I got it to work.
Not sure if there is a better way to set the list.pageSize apart from assigning the value to itself.
Thanks
<select name="numToDisplay" ng-change="list.pageSize = list.pageSize; list.rebindProducts()" ng-model="list.pageSize" class="form-control ng-pristine">
            <option value="32">Display</option>
            <option value="6">View 6</option>
            <option value="9">View 9</option>
            <option value="18">View 18</option>
            <option value="32">View 32</option>
        </select>
 
Previous
 
Next
HomeHome Product Discus... Product Discus...RazorCartRazorCartProduct List - choose number of items to displayProduct List - choose number of items to display