Setting up Facets on Magento 2

Make it easier for your customers to navigate your Search Page.

Overview

Clerk.js comes with built in support for Faceted Search. Any product attributes you send to Clerk.io can be used as part of the Faceted Search.

Creation of Facets

To add facets to your Clerk.io Search Page, go to your my.clerk.io backend and go under Search -> Designs -> New Design -> Select Facets -> One of four styles -> Give it a name and press Create design. This design will have a specific design ID which we will be using later.

Oopen your Magento 2 admin portal, follow the path Stores > Configuration > Clerk > Configuration, and scroll down to “Faceted Search Settings” to get started.

Enabling Faceted Search & Choosing Attributes

  • Enable your Search Page facets by selecting “Yes” from the dropdown

  • Next, select the attributes you’d like to include as Facets from the options listed in the Attributes box.

Multiselect Attributes & Titles

  • You can also add “Multiselect Attributes” as facets by selecting from this box.

  • In the “Titles” section, add a customer-friendly label for each facet you’ve added in the text boxes below " Admin", and choose the order you’d like each facet to appear under " Sort Order".

Then add the Facet designs ID and insert it to Design Template

After following these steps, Facets should be added to your Clerk.io Search Page!