Build a Product List Page
A product list page shows products for a query you choose, without a search bar, for example a category or a campaign landing page. The Product List runs the search when the page loads, and the filters let shoppers narrow the results.
Before You Start
Section titled “Before You Start”You need:
- the widgets installed (see Install the Widgets)
- the read-only token (see Authentication)
- an active Text Search campaign (see Campaigns)
Add the Product List and Filters
Section titled “Add the Product List and Filters”-
Add the Product List,
vviinn-results, with your query intext-search-query.results-countsets how many results it fetches, up to the maximum set in the campaign. -
Add
vviinn-extended-filtersfor all filters andvviinn-selected-filtersfor the values the shopper has chosen (see Filters). The filters components don’t take a token.
The example shows vviinn-extended-filters twice: in preview mode in a sidebar on wide screens, and in its default mode above the results on small screens, where the sidebar is hidden. Which columns appear as filters comes from the Text Search campaign, as described in Build a Search Page.
Check That It Works
Section titled “Check That It Works”Open the page:
- The Product List shows products for your query without any input from the shopper.
- Selecting a filter value narrows the results and adds the value to
vviinn-selected-filters.
Related
Section titled “Related”Pages that build on this one:
- Build a Search Page: the same layout with a Search Bar and image search
- Product List: every attribute of
vviinn-results