Using the Price Range Facet Widget
Liferay includes the Price Range Facet widget for quickly filtering product search results by price. Before adding this widget to a page, ensure you also have the Commerce Search Results widget on the 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 widget to a page, you can configure its fields:
-
In the price range facet widget, click Options () and select Configuration.
NoteBefore Liferay DXP 2025.Q1, the Configuration option appeared in the widget’s top-right corner.
-
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.