Using the Price Range Facet Widget
Liferay Commerce includes the Price Range Facet widget for quickly filtering Product search results by price. To use this widget, ensure the Commerce Search Results widget is also deployed to the desired page.
Starting with Liferay DXP 7.3 SP2, the Price Range Facet widget uses a Product’s lowest price for filtering results.
For earlier Commerce versions, the widget uses a Product’s base price and only works with Products that have a single SKU. Products with multiple SKUs are not displayed when the facet is active.
Once you’ve added the Price Range Facet widget to a page, you can configure its fields:
-
Hover over the widget, click on the Actions button (), and select Configuration.
-
In the Setup tab, configure the following fields:
Show Input Range: Determine whether the widget allows customers to enter a custom price range.
Ranges JSON Array: Set predefined price ranges for the widget.
-
Click on Save.
See Widgets Reference to learn about other Commerce widgets.