Custom Content Types for SuiteCommerce Extensions

Custom Content Types (CCTs) enhance SuiteCommerce functionality, enabling developers to create applications easily through Site Management Tools.

·2 min read·View Oracle Docs

Creating Custom Content Types (CCTs) allows developers to extend SuiteCommerce features, enhancing the way administrators manage website applications through Site Management Tools (SMT). By following a structured development process, you can build a functional CCT like the SC.CCT.ImageViewer, which acts as an image viewer capable of retrieving data from custom records.

How to Create a CCT as an Extension

Implementing CCTs requires two primary activities:

  1. Create a CCT extension: This involves using extension developer tools to set up the necessary files such as JavaScript, HTML, and Sass.
  2. Set up custom records: Inside NetSuite, you need to create the related custom records to enable your CCT in SMT.

Step-by-step Guide to Create a CCT

The following steps outline how to develop a CCT named SC.CCT.ImageViewer:

  1. Create Your CCT as an Extension
    Use the extension development tools to create a baseline extension. You will add a CCT as a separate module.

    • PropertyValue
      Fantasy nameImage Viewer!
      Extension nameImageViewer
      Vendor nameNetSuite
      Version1.0.0
      DescriptionThe best image viewer of the market!
      ApplicationsShopping, My Account, Checkout
      File Types to IncludeSass, JavaScript
      Initial Module NameImageViewerModule
  2. Create the Entry Point JavaScript Files
    These files are necessary to mount your extension to the application.

  3. Implement the View File
    Define the content that the CCT displays within the application.

  4. Implement the Template File
    Create a template file that visually formats the data for rendering.

  5. Implement the Sass Files
    Style the HTML output using Sass, leveraging auto-generated files by the development tools.

  6. Test and Deploy the CCT Extension
    Conduct tests and finalize the deployment of your extension.

Setting Up Custom Records in NetSuite

To enable the CCT, you must have SMT activated in your NetSuite account. Follow these guidelines to set up the necessary records and fields appropriate for your CCT.

Important Considerations

  • SMT must be enabled in your NetSuite account to implement CCTs. Check NetSuite's official documentation for details on enabling SMT capabilities.

Frequently Asked Questions (4)

Do I need to enable any specific features in NetSuite to create and use Custom Content Types (CCTs)?
Yes, Site Management Tools (SMT) must be enabled in your NetSuite account to implement and manage Custom Content Types (CCTs).
What are the basic steps required to create a Custom Content Type as a SuiteCommerce extension?
Creating a CCT requires you to first set up the CCT as a module using extension development tools. Then, you need to create entry point JavaScript files, implement view and template files, and style using Sass. Finally, test and deploy your CCT extension.
What types of files are necessary to develop a Custom Content Type in SuiteCommerce?
To develop a CCT, the necessary file types include JavaScript, HTML templates, and Sass for styling. These files are crucial for defining the functionality and appearance of your CCT.
Can a Custom Content Type be utilized in different applications within SuiteCommerce?
Yes, a CCT can be applied to multiple applications such as Shopping, My Account, and Checkout within SuiteCommerce, as outlined in the development process for the SC.CCT.ImageViewer example.
Source: Create a Custom Content Type 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 →