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.
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
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category