Prerequisites for Theme Development in SuiteCommerce
To develop themes in SuiteCommerce, install Node.js and Gulp.js, activate a theme, and fetch active theme files for customization.
To successfully develop themes using SuiteCommerce, you'll need to meet several prerequisites to set up your environment effectively. This includes downloading the necessary tools and ensuring your themes can be customized without losing previously established work.
Prerequisites for Fetching Active Theme Files
Before you can start fetching active theme files, ensure you have the following prerequisites:
- Node.js: Install Node.js from the official website to enable running Gulp.js tasks required for theme development.
- Gulp.js: This is essential for automating tasks in the development workflow. Install it globally using the command
npm install --global gulp. - Theme Developer Tools: Set up the Theme Developer Tools as per the instructions outlined in the SuiteCommerce documentation.
- Active Theme: Activate a theme for your domain. For new developers, the SuiteCommerce Base Theme is recommended as a baseline template, as it adheres to best practices for theme development.
Fetching Active Theme and Extension Files
To fetch the active theme files, follow these steps:
-
Open a command line or terminal.
-
Navigate to the top-level theme development directory you created.
-
Enter the command:
bashgulp theme:fetch -
When prompted, provide your Authentication ID and configure your account and role for fetching files.
Important: If you are using an account that differs from the one related to the existing authentication ID, use the --to parameter to specify the new account details.
What Happens When You Fetch an Active Theme?
When you execute the gulp theme:fetch command, several important actions are taken:
- A Workspace directory is created in your theme development directory. If it exists, its content is cleared before downloading new files.
- All editable theme-related files such as HTML, Sass, and assets are downloaded and organized by module, specific to the active theme, into your workspace.
- If any active extensions are associated with your theme, their files are also downloaded along with the theme files.
Example: Running gulp theme:fetch with your domain having an active theme SuiteCommerceBaseTheme will structure your workspace as follows:
1Workspace/2 Extras/3 Extensions/4 YOUR_VENDOR/5 PublishedExtension1/6 assets/7 Modules/8 manifest.json9 application_manifest.json10 SuiteCommerceBaseTheme/11 assets/12 Modules/13 Overrides/14 Skins/15 manifest.jsonNext Steps
After fetching the necessary files, you can proceed to customize, add new files, and further enhance your themes as outlined in the related documentation for theme development best practices. For detailed instructions and further details, refer to help topics like customizing existing theme files and adding new files to a theme or exploring best practices for creating themes.
Frequently Asked Questions (4)
What are the prerequisites for developing themes in SuiteCommerce?
How do I fetch files from an active SuiteCommerce theme?
What happens to existing theme files when I run the `gulp theme:fetch` command?
Do I need to perform any special actions if using a different account from the existing authentication ID when fetching theme files?
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.
