Best Practices for CCT Creation in SuiteCommerce

Follow best practices for creating a Customer-Centric Technology (CCT) in SuiteCommerce to ensure proper extension functionality.

·3 min read·View Oracle Docs

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 TypeDescription
TemplatesHTML templates for the extension
SassStylesheets for design and accessibility
ConfigurationConfiguration files for setting up extensions
JavaScriptClient-side scripts for functionality
SuiteScript 1.0Legacy SuiteScript files
SuiteScript 2.0Modern SuiteScript files (available from 2020.1)

Creating a Baseline Extension

To create a baseline extension, you can follow these steps:

  1. Open a command line or terminal.

  2. Access the top-level directory of your extension development environment established during your extension development tool installation.

  3. Execute the command:

    gulp extension:create
  4. 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?
Essential files for a CCT extension should include all required components except Sass files. You may also need to create SuiteScript directories and files pertinent to your extension module or the CCT module.
Can I create a single extension that uses multiple CCT modules?
Yes, you can create a single extension that references multiple CCT modules. This approach optimizes modularity and reusability in your SuiteCommerce development process.
What is the purpose of a baseline extension in SuiteCommerce?
A baseline extension serves as a foundational starting point for building extensions in SuiteCommerce. It includes a set of files that reside in your local extension development directory, and it is created using the `gulp extension:create` command.
How should I name my baseline extension for SuiteCommerce development?
When naming your baseline extension, choose a fantasy name for the UI display, which can include special characters and spaces. However, the internal files and folders need distinct names using only alphanumeric characters, without spaces.
Source: Best Practices 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 General

View all General articles →