Sass Entry Points for Theme Customization in SuiteCommerce
Sass entry points define how to load styles for Shopping, MyAccount, and Checkout in SuiteCommerce themes.
TL;DR Opening
Sass entry points are essential for integrating styles into SuiteCommerce applications, including Shopping, MyAccount, and Checkout. Each theme has specific entry points, ensuring the correct styles load for different parts of the application.
Understanding Sass Entry Points
Every theme in SuiteCommerce relies on a designated entry point file to load the Sass stylesheets necessary for specific applications. These entry points declare which Sass files are applicable based on the needs of each application. For instance, a file that is relevant only to the shopping application must load via the shopping.scss entry point, while styles applicable to all three applications should be referenced in each respective entry point.
Key Entry Points by Application
Below are the core entry points utilized in SuiteCommerce themes:
| Application | Application Sass File |
|---|---|
| Shopping | Modules/Shopping/shopping.scss |
| MyAccount | Modules/MyAccount/myaccount.scss |
| Checkout | Modules/Checkout/checkout.scss |
It's crucial that all Sass files referenced in these entry points are also declared in the theme's manifest.json file to ensure they are compiled properly.
Important Considerations
When customizing a theme, particularly when adding new Sass files, make sure to format changes correctly within the manifest.json. This file must include paths to all HTML templates, Sass, and assets for seamless incorporation into the active theme.
Incorporating New Files into the Manifest
-
Create your new Sass file and place it into the appropriate directory as specified. For Sass files, use:
Workspace/<THEME_DIRECTORY>/Modules/BaseSassStyles/Sass/reference-theme/_newSass.scss -
Open the
manifest.jsonfile located at:Workspace/<THEME_DIRECTORY>/manifest.json -
Add your file in the relevant
filesarray under the appropriate application header in the manifest structure.
Note: Proper naming conventions are vital to avoid conflicts within your theme's file hierarchy. Always check for existing file names to prevent issues.
Conclusion
By managing Sass entry points effectively within your theme, you ensure that styles are applied correctly across various applications, creating a seamless experience for end-users. This practice not only enhances functionality but also aligns with best practices for maintaining robust theme customizations in SuiteCommerce.
Key Takeaways
- Each application has specific Sass entry point files.
- All Sass files must be included in the
manifest.jsonto compile correctly. - Proper folder structure and naming help avoid conflicts.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
How do Sass entry points differ between Shopping, MyAccount, and Checkout in SuiteCommerce?
What is the role of the manifest.json file in managing Sass files for SuiteCommerce themes?
Do I need to include my new Sass files in any specific location for them to be recognized in SuiteCommerce themes?
What should be considered when naming new Sass files for SuiteCommerce themes?
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.
