Setting a custom list as a facet field

The user wants to create a facet field that sources the options from a custom list that they created.

  1. Create a Custom List
    1. Navigate to Customization > Lists, Records, & Fields > Lists > New
    2. Name: Add name depending on user’s preference
    3. Values sublist: Add list items depending on user’s preference
    4. Fill out other fields as needed 
    5. ClickSave
  2. Create the Item field to be displayed on the web store
    1. Navigate to Customization > Lists, Records, & Fields >Item Fields > New
    2. Label: Add name depending on user’s preference
    3. Type:Choose Multiple Select
    4. List/Record:Select the custom list you created
    5. The Applies To tab can be filled out depending on user’s preference
    6. Fill out other fields as needed
    7. Click Save
  3. Setup Facets in Website Record
    1. Navigate to Commerce > Websites Website List
    2. Click Edit next to your Website
    3. Click the Search Index tab
    4. Click Facets Fields subtab
    5. Facet Field Name: Select the new Item Field you created
    6. Click Save
  4. Update SuiteCommerce Configuration Record
    1. Navigate to Commerce > Websites> Configuration
    2. Select Website: Select the your Website
    3. Select Domain:Select the Domain of your Website
    4. Click Configure
    5. Navigate to Shopping Catalog > Facets 
    6. Facets:
      • Item Field ID: the ID of the item field
      • Name: the Name of the facet field to display on the web store
      • Priority: 1
      • Behavior: range
      • Template: facets_faceted_navigation_item.tpl
      • Non Collapsible: Yes
      • Show Heading: Yes
    7. Click Save

Note: After setting all of these changes, perform a Cache Invalidation Request.

Leave a comment

Your email address will not be published. Required fields are marked *