Fetching Active Themes for SuiteCommerce Development
Fetching active themes in SuiteCommerce downloads vital HTML and asset files for theme development, ensuring a robust local environment.
When you run the gulp theme:fetch command, the theme developer tools perform several crucial functions to streamline your theme development on SuiteCommerce.
What Happens When You Fetch an Active Theme?
- Workspace Directory Creation: The developer tools create the Workspace directory in your theme development directory. If the Workspace directory already exists, its contents will be cleared before downloading the new files. This action overwrites any files already present in your local workspace.
- Theme File Downloading: All theme-related HTML and Sass files for the active theme are downloaded and organized in your workspace, sorted by module within a dedicated directory for the theme. For instance, files will be located under
Workspace/<THEME_DIRECTORY>/Modules. - Asset Management: All theme-related assets are placed into
Workspace/<THEME_DIRECTORY>/assets. - Skin Presets: Theme-related skin preset files are downloaded to
Workspace/<THEME_DIRECTORY>/Skins. - Overrides Handling: If the theme includes any previously deployed overrides, those are downloaded into
../Workspace/<THEME_DIRECTORY>/Overrides. - File Validation: The developer tools validate that all files listed in the theme's
manifest.jsonare downloaded correctly. Any missing files will be identified, prompting you to rerun thegulp theme:fetchcommand.
Active Extensions
If the chosen domain includes any active extensions, the developer tools will:
- Download all extension-related HTML and Sass files and organize them by module in directories named according to each active extension (
Workspace/Extras/Extensions/<EXTENSION_DIRECTORY>/Modules). - Download extension-related assets into
../Workspace/Extras/Extensions/<EXTENSION_DIRECTORY>/assets.
When fetching an active theme, you acquire the foundational HTML, Sass, and asset files necessary for your theme development. While a published theme is protected by copyright—meaning you can't overwrite its files—you can use it as a base to create your own unique theme.
Custom Development
You have the option to override the HTML and Sass for the active extensions with your modifications or add new assets. Be aware that while these declarations affect your domain once activated, they do not overwrite the published extension's code.
Example Structure
Consider that your domain has an active theme named SuiteCommerceBaseTheme and an extension called PublishedExtension1. When you run the gulp theme:fetch command, your Workspace directory should resemble:
1Workspace/ 2 Extras/ 3 Extensions/ 4 ACME/ 5 PublishedExtension1/ 6 assets/ 7 Modules/ 8 manifest.json 9 application_manifest.json 10 SuiteCommerceBaseTheme/ 11 assets/ 12 Modules/ 13 Overrides/ 14 Skins/ 15 manifest.json File Types and Locations
| File Types | Workspace Subdirectory |
|---|---|
| Theme-related HTML and Sass files | ../SuiteCommerceBaseTheme/Modules/ |
| Theme-related asset files | ../SuiteCommerceBaseTheme/assets/ |
| Theme-related skin presets | ../SuiteCommerceBaseTheme/Skins/ |
| Extension-related HTML and Sass files | ../Extras/Extensions/ACME/PublishedExtension1/Modules/ |
| Extension-related asset files | ../Extras/Extensions/ACME/PublishedExtension1/assets/ |
| Pre-existing extension overrides | ../SuiteCommerceBaseTheme/Overrides/ |
This breakdown helps ensure your theme development environment is efficiently set up following the execution of the gulp theme:fetch command.
Frequently Asked Questions (4)
Do I need to manually create the Workspace directory before running the 'gulp theme:fetch' command?
What happens to the existing files in the Workspace when running the 'gulp theme:fetch'?
Can I modify the downloaded theme files to create a new theme?
How does 'gulp theme:fetch' handle theme overrides?
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.
