Products Per Page
Let shoppers choose how many products each page shows.
Documentation
Overview
This element lets users set the number of products shown per page. FactFinder backend defines the available options.
ff-products-per-page-selectis a native HTMLselectelement.ff-products-per-pageis a custom-built dropdown element.ff-products-per-page-listshows a list with all options always visible.
All three elements can be used with or without additional customization.
Native HTML select (ff-products-per-page-select)
The code below will display a native HTML select. You can optionally specify an option template. If not specified, it will default to <option>{{value}}</option>.
<ff-products-per-page-select>
<option data-template>Show {{value}} products per page</option>
</ff-products-per-page-select>Rendered HTML
When set up like in the example above, the rendered HTML could look like this.
<ff-products-per-page-select>
<select>
<option>Show 12 products per page</option>
<option>Show 24 products per page</option>
</select>
</ff-products-per-page-select>Custom-built dropdown (ff-products-per-page)
ff-products-per-page is a custom-built dropdown. If no ff-products-per-page-item template is provided, it defaults to <ff-products-per-page-item>{{value}}</ff-products-per-page-item>.
Rendered HTML
When set up like in the example above, the rendered HTML could look like this.
Products per page as list (ff-products-per-page-list)
You can also display a products per page handle as a horizontal list with ff-products-per-page-list.
If no ff-products-per-page-item is provided as template, it will default to <ff-products-per-page-item>{{value}}</ff-products-per-page-item>.
Demo
Try the Products Per Page demo.
API code
ff-products-per-page-dropdown
Properties
Methods
Events
ff-products-per-page-list
Events
ff-products-per-page-item
Properties
Rendered HTML
When set up like in the example above, the rendered HTML could look like this.
Last updated
Was this helpful?