Best Practices for CCT Creation in SuiteCommerce
Follow best practices for creating a Customer-Centric Technology (CCT) in SuiteCommerce to ensure proper extension functionality.
TL;DR Opening
Follow best practices when creating a Customer-Centric Technology (CCT) in SuiteCommerce to ensure proper extension functionality and a smooth development process.
Best Practices for CCT Creation
When developing a CCT, consider the following best practices to enhance extension functionality:
-
The essential files for an extension with a CCT should include all required components, excluding the Sass files. You may also need to create SuiteScript directories and files pertinent to your extension module or the CCT module.
-
Utilize the baseline extension generated by the extension development tools as a foundational starting point for building your SuiteCommerce site extensions. The example CCT discussed here will not use all generated files, and some of the initial code provided may need to be replaced with your specific functional code.
-
You can implement a similar approach to create a single extension that references multiple CCT modules, optimizing modularity and reusability in your development process.
Understanding Baseline Extensions
A baseline extension consists of a set of files that resides in your local extension development directory, serving as the foundation for any extensions you intend to build for your eCommerce web store or SCIS deployment. When executing the gulp extension:create command, the developer tools will create this baseline structure in a Workspace directory within your main extension development directory.
This baseline extension typically begins with one custom module crafted according to your specific needs, which can incorporate various file types such as:
| File Type | Description |
|---|---|
| Templates | HTML templates for the extension |
| Sass | Stylesheets for design and accessibility |
| Configuration | Configuration files for setting up extensions |
| JavaScript | Client-side scripts for functionality |
| SuiteScript 1.0 | Legacy SuiteScript files |
| SuiteScript 2.0 | Modern SuiteScript files (available from 2020.1) |
Creating a Baseline Extension
To create a baseline extension, you can follow these steps:
-
Open a command line or terminal.
-
Access the top-level directory of your extension development environment established during your extension development tool installation.
-
Execute the command:
gulp extension:create -
Provide the necessary information for your baseline extension when prompted. Keep the following in mind:
- Use only alphanumeric characters without spaces for entries.
- Pressing Enter will default to the preset values.
When naming your extension, choose a fantasy name for the user interface display, which may include special characters and spaces, such as My Cool Extension!. Similarly, create a distinct name for the internal files and folders, specify your business or vendor name, and assign a version number relevant for tracking and updates.
Conclusion
Adhering to these best practices when creating a CCT in SuiteCommerce will streamline your development process and ensure that your extensions function correctly within the NetSuite environment.
Source: This article is based on Oracle's official NetSuite documentation.
Key Takeaways
- Follow best practices to leverage essential CCT files effectively.
- Use baseline extensions as a foundation for your development.
- Ensure accurate module structure to support extension functionality.
Frequently Asked Questions (4)
What essential files are needed for a CCT extension in SuiteCommerce?
Can I create a single extension that uses multiple CCT modules?
What is the purpose of a baseline extension in SuiteCommerce?
How should I name my baseline extension for SuiteCommerce development?
Was this article helpful?
More in General
- Field Service Management Enhancements and Bug Fixes for 2026
Overview of the 2026 Field Service Management SuiteApp updates showcasing enhancements and bug fixes.
- Example
Documentation article about Example
- Pass String Literals
Documentation article about Pass String Literals
- Manual Edits
Documentation article about Manual Edits
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category