Custom Theme Development Tools for SuiteCommerce

Customize existing themes and develop new themes using the SuiteCommerce theme developer tools for efficient theme management.

·2 min read·View Oracle Docs

The SuiteCommerce theme developer tools enable you to customize existing themes and create new ones efficiently. This tool supports two primary methods of theme creation: via the create command, which offers a fallback theme approach for easy updates, and by fetching active theme files as a baseline for your custom theme.

How Can You Create a Custom Theme?

There are two distinct ways to initiate the creation of a custom theme:

1. Using the create Command

This method is preferred for creating themes as it allows for automatic updates. When you use the create command, your new theme inherits files from the Base Theme, establishing a foundational structure for further customization. Your custom theme can easily receive updates and new features from the Base Theme—just reactivate the theme to benefit from enhancements.

Important Notes:

  • You cannot introduce new templates or Sass files within the custom theme. Instead, modifications should be made to existing files or added through extensions.
  • The assets folder operates as an all-or-nothing approach. You must either use all assets from the Base Theme or exclusively from your custom theme. Specifying an assets entry in the manifest.json of your custom theme dictates which assets folder will be utilized.

2. Fetching Active Theme Files

This method allows you to download files from any published theme or previously deployed custom theme. It serves as a foundation for your new theme, providing access to development files that can be modified as needed. However, be cautious: fetching a theme will overwrite any existing theme files in your local workspace, potentially leading to data loss.

Prerequisites:
Before creating a custom theme, ensure you have:

  • Set up your Theme Developer Tools.
  • Installed the Base Theme (activation is not required).

Summary of Steps to Create a Custom Theme

To create a custom theme:

  1. Open your terminal or command line interface.
  2. Use the appropriate command (gulp theme:create for the create command or gulp theme:fetch for fetching files) based on your chosen method.
  3. Configure and customize your theme folders and files to meet your specific needs.

By leveraging these methods, you can effectively develop and manage custom themes tailored to your eCommerce needs.

Frequently Asked Questions (4)

What are the two primary methods for creating a custom theme in SuiteCommerce?
The two primary methods for creating a custom theme in SuiteCommerce are using the `create` command and fetching active theme files. The `create` command allows for automatic updates and uses a fallback theme approach, while fetching provides access to development files from any published or previously deployed custom theme.
Can I add new templates or Sass files to a custom theme created with the `create` command?
No, you cannot introduce new templates or Sass files in a custom theme created with the `create` command. Modifications must be made to existing files, or new additions can be managed through extensions.
What should I be careful about when fetching active theme files?
When fetching active theme files, be cautious because this process will overwrite any existing theme files in your local workspace, which can lead to data loss. It's important to ensure that essential files are backed up before proceeding.
Do I need to activate the Base Theme before creating a custom theme?
No, activation of the Base Theme is not required before creating a custom theme, but you must have it installed to proceed with the creation process.
Source: Develop Your Theme 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 →