Edit Theme Manifest in NetSuite Commerce
Edit the manifest.json to manage NetSuite Commerce theme customizations and extension overrides. Each theme in NetSuite Commerce includes a manifest.json file
Each theme in NetSuite Commerce includes a manifest.json file within the Workspace directory, vital for managing resources in an active theme. This file is crucial for compiling resources and should be edited to include any HTML, Sass, or assets created during theme customization.
What Does the manifest.json Include?
The manifest.json file organizes various elements:
- Theme Metadata: Automatically populated upon deploying a theme. It contains important fields such as
name,vendor,type,target,version, anddescription. - Overrides: Manages extension overrides. Using Gulp.js commands, any HTML or Sass file overrides are automatically included during deployment.
- Templates: Lists HTML template files for applications like shopping, myaccount, and checkout. Custom templates must be manually added.
- Sass: Defines paths to Sass entry points. New Sass files should be added in the logical order of their hierarchy.
- Skins: These are automatically updated when running theme development commands. You can customize the name of these skins for clarity.
- Assets: Manages theme directory asset paths, facilitating the integration of new images and fonts.
- Record Paths: Details the theme, extension record, and activation IDs within NetSuite.
Customizing Your Theme
To customize your theme effectively, you should manually update this file. Note that Gulp.js tools assist in some updates, particularly when deploying your theme or handling theme overrides.
For more examples and guidance on customizing themes, consider checking related resources such as "Add a New File to a Theme," "Test and Deploy Your Theme," and best practices documentation.
Who This Affects
- Developers working on theme customization
- Administrators managing SuiteCommerce configurations
- eCommerce teams seeking to implement unique themes on their storefronts
Key Takeaways
manifest.jsonis central to theme resource management in NetSuite Commerce.- Theme customizations require manual entries for new HTML, Sass, and assets.
- Tools like Gulp.js automate some of the processes, but manual edits are essential for custom files.
- The manifest file allows for extensive customization and management of themes, from metadata to assets.
Frequently Asked Questions (4)
When should I manually edit the manifest.json file in a theme?
How are extension overrides included in the manifest.json file?
What is required for the `templates` object in the manifest.json file?
How does the Sass section in manifest.json handle files?
Was this article helpful?
More in General
- Release Notes PDF Availability in NetSuite
NetSuite provides generated PDF files for each Release Note update, enhancing accessibility and user experience.
- Commitment Credits for Billing in NetSuite SuiteBilling
Commitment Credits in SuiteBilling enhance flexible usage-based billing across services. Managing usage-based billing in NetSuite SuiteBilling has been
- Prepay Across Subscriptions in NetSuite SuiteBilling
Prepay Across Subscriptions enables efficient management of prepaid services in NetSuite SuiteBilling.
- Edit the Extension Manifest: Manual Edits
Documentation article about Manual Edits Your extension's Workspace directory includes a manifest.json file, which includes all the information required to
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category