Facet Field Configuration for SuiteCommerce Customization
Customize your SuiteCommerce facet fields layout, behavior, and color palettes for enhanced user navigation in your eCommerce site.
What is Facet Field Configuration?
Facets allow users to filter products within eCommerce sites, enhancing the shopping experience by providing multiple filtering options. Configuring these facets properly is crucial for a user-friendly interface.
How to Configure Facet Fields
To configure facet fields in SuiteCommerce, you'll be working primarily in the SC.Shopping.Configuration.js file to customize how each facet is displayed and behaves on your website. Here’s a step-by-step guide:
Step 1: Configure Display Settings
You can customize how facet fields display on your site. For example, if you want to display the color facet, you may set it up as follows:
- Title: Change the facet title to Item Color.
- Appearance: It should appear expanded upon loading, be collapsible, and be first in the list of facets.
Here is an example of what your custom facet configuration might look like:
1facets: [2 {3 id: 'color',4 name: _('Item Color').translate(),5 priority: 1,6 behavior: 'multi',7 template: facets_faceted_navigation_item_color_tpl,8 collapsed: false,9 uncollapsible: false,10 showHeading: true,11 colors: colors,12 titleSeparator: ', '13 }14]Step 2: Modify URL Components
To adjust how each facet field appears in the URL:
- Navigate to Commerce > Marketing > SEO > URL Components for Facets.
- Note the URL Component of the facets you wish to configure.
- Create a custom module that includes the
SC.Shopping.Configurationas a dependency.
Important: Avoid directly editing the original SC.Shopping.Configuration.js file. Always refer to the best practices for modifying JavaScript within frontend configuration files.
Step 3: Customize Color Palettes
To adjust the color options of your facets, extend the colors object to include your hexadecimal values:
colors: _.extend(colors, {'blue': '#0000FF', 'red': '#f63440'})Customize colors according to specific requirements without altering the default colors object directly.
Step 4: Configure Facet Delimiters
To define the characters that separate facets in the URL:
- In your custom module, extend the
facetDelimitersobject with necessary configuration properties.
Note: Again, do not edit the core SC.Shopping.Configuration.js file. Instead, create a custom module to encapsulate your changes.
Who This Affects
- Developers: Responsible for customizing the front end of eCommerce sites.
- Site Administrators: Overseeing eCommerce platform configurations and settings.
Key Takeaways
- Facet fields enhance product filtering for better user experiences.
- Configuration involves customizing both display properties and URL components.
- Use custom modules to ensure maintainability and adherence to best practices.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Can I customize how facet fields are displayed in SuiteCommerce?
Is it advisable to directly edit the 'SC.Shopping.Configuration.js' file when configuring facet fields?
How do I customize the URL components for facet fields?
What is the recommended way to extend color options in facet fields?
Was this article helpful?
More in Commerce
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
- Commerce Extensions in NetSuite 2026.1
Commerce Extensions in NetSuite 2026.1 enhance performance and user experience in eCommerce.
- Convert Multiple Transaction Line Items into Configured Items in
Enhance transaction processing in NetSuite by converting multiple line items into configured items with improved session handling.
- New SuiteCommerce Features in NetSuite 2026.1
New SuiteCommerce features in NetSuite 2026.1 enhance user experience and improve eCommerce efficiency.
