Custom Content Types for SuiteCommerce Extensions
Custom Content Types (CCTs) enhance SuiteCommerce functionality, enabling developers to create applications easily through Site Management Tools.
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:
- Create a CCT extension: This involves using extension developer tools to set up the necessary files such as JavaScript, HTML, and Sass.
- 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:
-
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.-
Property Value Fantasy name Image Viewer! Extension name ImageViewer Vendor name NetSuite Version 1.0.0 Description The best image viewer of the market! Applications Shopping, My Account, Checkout File Types to Include Sass, JavaScript Initial Module Name ImageViewerModule
-
-
Create the Entry Point JavaScript Files
These files are necessary to mount your extension to the application. -
Implement the View File
Define the content that the CCT displays within the application. -
Implement the Template File
Create a template file that visually formats the data for rendering. -
Implement the Sass Files
Style the HTML output using Sass, leveraging auto-generated files by the development tools. -
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)?
What are the basic steps required to create a Custom Content Type as a SuiteCommerce extension?
What types of files are necessary to develop a Custom Content Type in SuiteCommerce?
Can a Custom Content Type be utilized in different applications within SuiteCommerce?
Was this article helpful?
More in Commerce
- SuiteCommerce CAPTCHA Configuration Options and Setup
Configure SuiteCommerce CAPTCHA for enhanced security. Enable CAPTCHA for registration, login, guest checkout, and orders.
- Single Sign-On Integration for NetSuite Web Stores
Implement inbound single sign-on integration for NetSuite web stores using SAML or OpenID Connect for seamless access.
- Facets Management for Commerce in NetSuite
Facets management in NetSuite Commerce optimizes item search filters, enhancing performance and improving user experience.
- SuiteCommerce Analytics Data and Cookie Consent Integration
SuiteCommerce Analytics Data enables tracking of shopper behavior. This requires a cookie consent extension for user preferences.
Advertising
Reach Commerce Professionals
Put your product in front of NetSuite experts who work with Commerce every day.
Sponsor This Category