filter
A storefront filter of a collection or search page (collection.filters, search.filters).
Merchants choose the filters in Storefront › Search & discovery. Each filter adds its param_name to the URL; the page reloads (or re-renders the section) with the filtered products.
Available in: collection.filters, search.filters.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
filter.label |
string | Name, in the visitor’s language. |
filter.type |
string | list, price_range or boolean. |
filter.param_name |
string | URL parameter (filter.v.price, filter.p.vendor, filter.v.option.color…). |
filter.presentation |
string | swatch for colour options, else text. |
filter.values |
array of filter_value | Values (list and boolean filters). |
filter.active_values |
array of filter_value | Values in use. |
filter.inactive_values |
array of filter_value | Values not in use. |
filter.min_value |
object | price_range: param_name and value of the minimum. |
filter.max_value |
object | price_range: param_name and value of the maximum. |
filter.range_min |
number | price_range: lowest price in the list. |
filter.range_max |
number | price_range: highest price in the list. |
filter.url_to_remove |
string | The current URL without this filter. |
Related
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

