Customizing the Featured Category Extension in SuiteCommerce
Customize the Featured Category extension in SuiteCommerce to enhance category visibility and improve usability for your eCommerce site.
The Featured Category extension allows you to prominently display a commerce category on your website, streamlining the shopping experience for users. It highlights multiple items, minimizes API calls to a single request per category, and grants control over item presentation. This functionality is particularly valuable for showcasing several products effectively on the Product Detail page.
How to Override the Featured Category Extension
Customizing the Featured Category extension can be achieved through an override method. This process involves creating a new template file within your theme's Overrides directory. Here’s a step-by-step guide:
- Location of Template: Navigate to
Workspace/Extras/Extensions/NetSuite/FeaturedCategory/Modules/Item/Templates/sc_featuredcategory_item.tpl. - Copy Source File: Copy the template source file to your clipboard.
- Paste in Overrides Directory: Paste the copied file into the corresponding location within your theme's Overrides directory (e.g.,
Workspace/Theme/Overrides/NetSuite/FeaturedCategory/Modules/Item/Templates/sc_featuredcategory_item.tpl).
Important: Keep the file's name intact for the override to work correctly. - Open Template File: Access the new file from your Overrides directory.
- Start Local Server: Run your local server using the command
gulp theme:local.
Note: Ensure all files are in the correct location prior to starting the server; otherwise, they won't be monitored for changes. Check your CLI log to identify which overrides are being watched. - Add Custom Styles: Modify your template file to include desired styles. For example, to center and enlarge the item price, you can use the following code snippet:
To remove the item's name, simply hide or remove the line responsible for rendering it.javascript.home-page .featurecategorycct-item-price {text-align: center;font-size: $sc-font-size-xl;}
- Testing and Deployment: Once your customizations are in place, utilize the theme developer tools to test or deploy your changes. Refer to the section on Test and Deploy Your Theme for detailed procedures.
Key Considerations
- Maintain the original file names during the override process to ensure functionality.
- Perform thorough testing locally before deploying changes to a live environment.
- Utilize the theme developer tools for efficient workflows.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
How do I override the Featured Category Extension in SuiteCommerce?
What should I do if my modifications to the Featured Category extension are not being applied?
Can I customize the styles of items in the Featured Category extension?
Is it necessary to maintain the original file names when customizing the Featured Category extension?
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.
