Managing Theme Manifest Metadata for Customization in NetSuite
The theme manifest.json is essential in NetSuite for customizing themes and managing active theme resources effectively.
The manifest.json file in NetSuite is crucial for theme customization, housing all necessary metadata and managing resource compilation for an active theme.
What is the Theme Manifest in NetSuite?
Each NetSuite theme includes a manifest.json file located within its Workspace directory. This JSON file contains comprehensive details needed to compile resources for an active theme. It lists all HTML templates, Sass, and associated assets, specifically those fetched via the gulp theme:fetch command.
Key Metadata Information
The theme's manifest.json file includes initial entries of metadata that populate automatically upon running the gulp theme:deploy command. Here are critical fields:
- Name (string): A unique identifier for the theme; required.
- Vendor (string): The vendor identification; required.
- Type (string): Specifies type, typically "theme"; required.
- Target (string): Commerce applications the theme supports; needed in a comma-separated format.
- Version (string): Theme version, e.g., "1.2.0"; mandatory.
- Description (string): Provides an optional description visible in NetSuite.
How Are Overrides Managed?
If any extension overrides are introduced, the manifest.json file includes them. Utilizing the Override method, Gulp.js commands detect HTML or Sass overrides, enabling automatic inclusion within this file. For example, overriding an _error.sass file results in automatic updates post gulp theme:deploy execution.
Organizing Templates and Sass
The templates object categorizes all HTML template files per application (such as shopping, myaccount, and checkout). The sass object specifies application path entries and necessary Sass files for deployment. When adding new files, ensure they are correctly ordered within their respective hierarchies in the files array.
Skins and Assets
The skins array auto-populates when commands like gulp theme:local are executed, detailing each skin preset file with properties such as name and file. Similarly, the assets object catalogs paths to images and fonts essential for the theme, specifying their locations relative to the theme's assets folder.
Who This Affects
This information is vital for the following roles and modules:
- Developers: Responsible for theme customization and deployment.
- Administrators: Oversee theme setup and configuration within NetSuite.
- Commerce Teams: Utilize themes within SuiteCommerce environments.
Key Takeaways
manifest.jsonis pivotal for active theme resource compilation in NetSuite.- Essential metadata is automatically populated but customizable as needed.
- Overrides, templates, Sass files, skins, and assets are seamlessly managed.
- Proper organization and hierarchy are crucial for effective theme deployment.
Frequently Asked Questions (4)
How is the theme metadata populated in NetSuite?
Are there any required fields in the theme metadata manifest?
Can the description field be omitted in the theme metadata?
What does the 'target' field in the theme metadata signify?
Was this article helpful?
More in General
- NetSuite 2026.1: Support for Consolidated Reports and SuiteQL
New SuiteQL tool and consolidated reports enhance NetSuite 2026.1 reporting. Starting with the latest updates in NetSuite 2026.1, NetSuite enhances reporting
- Release Notes PDF Availability in NetSuite
NetSuite provides generated PDF files for each Release Note update, enhancing accessibility and user experience.
- Enhanced Commitment Credits for Flexible Billing in NetSuite
Commitment Credits in NetSuite SuiteBilling offer enhanced flexibility for usage-based billing across diverse services.
- Unlinking Intercompany Cross Charge Journals in NetSuite
Learn how to unlink intercompany cross charge journals in NetSuite efficiently without needing external support.
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category