Deploying Custom Themes in NetSuite for Websites
Deploying custom themes to NetSuite allows activation for website domains, enhancing your site's appearance and performance.
After testing and verifying your theme locally, deploying it to NetSuite enables activation for a specific website domain. This process is essential for customizing and enhancing your site's user experience. Below is a detailed guide on how to deploy a custom theme effectively.
How to Deploy Your Theme to NetSuite
-
Open a Command Line Interface: In your local developer environment, access your top-level development directory.
-
Run the Deploy Command: Execute the following command:
bashgulp theme:deployNote: For accounts that have account-specific domains starting from 2021.2.1, you need to specify your account number with the gulp command to successfully connect to your NetSuite account.
Warning: Be cautious of potential data loss; the
gulp theme:deploycommand updates themanifest.jsonfile and may overwrite manual changes. To preserve such changes, use:bashgulp theme:deploy --preserve-manifest -
Enter Required Information: When prompted, provide the following entries, ensuring that all created entries consist only of alphanumeric characters without spaces:
- Authentication ID: Represents your NetSuite account and role.
- Account and Role: Choose the NetSuite account and role for your authentication ID. Ensure you select a role that grants necessary permissions to deploy to NetSuite, typically
AdministratororSCDeployer. - Website: Select the associated website for your domain.
- Vendor: The name of the vendor building the theme.
- Name: A name for your custom theme without special characters or spaces.
- Fantasy Name: How you want the theme to appear in the NetSuite UI; this can include spaces and special characters.
- Version: Assign a version using the format
dd.dd.ddfor future updates. - Description: A brief description for your theme, visible when selecting themes in NetSuite.
- Supported Products: Select applicable products (e.g., SuiteCommerce Online, SCIS).
- Target Version: Declare the target versions that your theme supports.
What Happens During Deployment?
When you execute the deploy command, the theme developer tools perform several tasks:
- Copy Custom Files: All custom theme files are copied into a
DeployDistributionfolder. - Test and Validate: The developer tools test and validate your customizations before deployment.
- Update Manifest: Any necessary overrides are included in the
manifest.jsonfile. - Upload Files: The source files are bundled and uploaded to the NetSuite File Cabinet with their directory structure maintained.
Note: The command uploads in chunks, typically 80 files at a time, which can be configured if necessary.
Once deployed, NetSuite creates an Extension record for the custom theme, allowing it to be activated. However, be mindful of the following with extension overrides:
- Overrides deploy with the theme; if the theme is activated without activating related extensions, the overrides won’t apply.
- Newly activated extensions post-deployment require updating the existing theme for the customizations to take effect.
Example Deployment Scenario
Imagine you customized the active theme (SuiteCommerce Base Theme) and the active extension (PublishedExtension1). After thorough local testing, you run the following command:
gulp theme:deployThe developer tools will guide you through setting up your theme, allowing you to rename your theme folder and update relevant configurations, preparing for deployment.
Next Steps
After deploying your theme files, follow the outlined steps in the documentation to activate the theme on your desired website domain. Activation is crucial for deploying your customizations effectively on the live site.
Frequently Asked Questions (4)
What prerequisites are required for deploying a theme in SuiteCommerce?
How do I include account-specific domains for theme deployment in SuiteCommerce?
What actions occur during the 'gulp theme:deploy' command execution?
How should overrides from extensions be managed during theme deployment?
Was this article helpful?
More in Commerce
- Loop Returns Integration in NetSuite Connector 2026.1
Loop Returns integration enhances NetSuite Connector by automating returns, refunds, and exchanges in version 2026.1.
- 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.
