Deploying Custom Themes in NetSuite Commerce

Deploying custom themes in NetSuite Commerce allows for website personalization and enhancements. Activate your theme for specific domains.

·2 min read·1 views·View Oracle Docs

TL;DR

Deploying custom themes in NetSuite Commerce allows you to personalize your website's appearance. After testing a theme locally, it's essential to deploy it, making it available for activation on your desired domain.

What Happens When You Deploy a Theme?

When you deploy a theme using the Gulp command, several steps take place:

  • Your theme files and any extension overrides are uploaded to the NetSuite File Cabinet.
  • The deployment process verifies your customizations and compiles your theme source files.
  • The manifest file is updated with necessary overrides, ensuring a consistent integration.

Steps to Deploy Your Theme

  1. Open the Command Line: In your local development environment, navigate to the top-level directory of your project.

  2. Deploy Command: Execute the following command:

    bash
    gulp theme:deploy

    Note: For accounts with account-specific domains (2021.2.1 and later), include your account number with the command for proper authentication.

    Important: The deployment process updates the manifest.json file. If you've made manual changes to this file that you want to preserve, run:

    bash
    gulp theme:deploy --preserve-manifest
  3. Input Required Information: During the first deployment, you will need to provide:

    • Authentication ID: Represents your NetSuite account and role.
    • Account and Role: Select the NetSuite account and role needed for authentication.
    • Website: Choose the associated website for your theme.
    • Vendor: Name of the vendor involved in the theme build.
    • Theme Name: A name for your custom theme (no special characters or spaces).
    • Fantasy Name: A display name for the theme in the NetSuite interface (can include spaces and special characters).
    • Version: Assign a version to your theme using the format dd.dd.dd.
    • Description: A brief description that will be displayed in NetSuite.
    • Supported Products: Identify the products your theme will apply to (e.g., SuiteCommerce Online).
    • Target Version: Specify compatibility versions for your theme.

The Deployment Process

When you run the command:

  • The developer tools validate your customizations and copy files to a DeployDistribution directory, creating it if it does not exist.
  • The theme files are uploaded in chunks to the NetSuite File Cabinet, preserving the organizational structure.

Activation of Your Theme

After deploying your theme, the next critical step is activating it for your website domain. Refer to the instructions on Activating Themes and Extensions for guidance on applying your newly deployed theme.

Key Takeaways

  • Deploying themes allows for website customization in NetSuite.
  • Use the gulp theme:deploy command for deployment and remember to include your account number when necessary.
  • Ensure you enter the correct details during the deployment prompts to avoid errors.

Frequently Asked Questions (4)

Do I need to enable any feature flags to deploy themes using Gulp commands in NetSuite?
No specific feature flags need to be enabled to deploy themes using Gulp commands. However, you must provide your account number for accounts with account-specific domains on release 2021.2.1 and later.
What are the necessary details required during the theme deployment process with Gulp?
During theme deployment, provide the Authentication ID, account and role, website, vendor name, theme name, fantasy name, version, description, supported products, and target version.
How does the deployment using Gulp commands affect the manifest.json file?
The deployment process updates the manifest.json file to include necessary overrides. If you do not use the --preserve-manifest option, any manual changes to the manifest.json file may be overwritten.
What roles are recommended for sufficient permissions to deploy themes in NetSuite?
Sufficient permissions for theme deployment are typically provided by the Administrator and SCDeployer roles in NetSuite.
Source: Next Steps Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →