Supported Scripts and APIs for SuiteCommerce Customization
SuiteCommerce allows customization using various web scripts and APIs, including SuiteScript and Extensibility API for enhanced functionality.
TL;DR Opening
SuiteCommerce enables developers to use standard web development scripts and languages alongside proprietary NetSuite technologies for customizing sites. Key languages include HTML, JavaScript, and the SuiteScript API, facilitating robust enhancements and integrations.
Supported Scripts and Languages
When developing extensions for SuiteCommerce sites, you can utilize a range of web development scripts and languages:
- HTML
- CSS
- Sass
- Handlebars.js
- JavaScript
- TypeScript
- AJAX
Additionally, employing NetSuite's own SuiteScript scripting language is essential for creating extensions specific to SuiteCommerce sites.
SuiteScript Overview
SuiteScript acts as NetSuite’s proprietary scripting language, offering a library of custom objects and methods that enhance what you can do with JavaScript. This API is crucial for:
- Accessing data stored in NetSuite records
- Storing and manipulating data within NetSuite
For more information about SuiteScript and its capabilities, consider exploring the resources mentioned below:
- SuiteScript Developer Guide
- SuiteScript Records Guide
- SuiteScript 2.x API Reference
- Commerce Migration to SuiteScript 2.0
Supported SuiteScript Versions
Currently, SuiteCommerce supports SuiteScript versions 1.0 and 2.0, but SuiteScript 2.1 is not supported for Commerce website development. Understanding the differences between these versions can help you ensure compatibility and leverage the most appropriate features for your customizations.
APIs for Development
You can leverage various APIs to enhance your SuiteCommerce customization, including:
| API | Description | Can be used with | For more information |
|---|---|---|---|
| Extensibility API | Class and methods for accessing routers, models, and views to customize behavior without altering core application code. | SuiteCommerce, Aconcagua release and later | Overview, Extension Tutorials |
| Commerce API | Methods to access shopping objects like customers and orders during shopping sessions for customization. | SuiteCommerce, All releases of SCA | Commerce API, Shopping Objects |
| Item Search API | Facilitates building facet filtering and keyword searches on item data based on your configured search settings. Note: Not used in MyAccount solutions. | SuiteCommerce, All releases of SCA | Item Search API |
In summary, mastery of SuiteScript and the various APIs is essential for anyone looking to customize SuiteCommerce effectively. These tools ensure that your enhancements are both powerful and maintainable, capable of adapting to future SuiteCommerce updates without extensive rework.
Key Takeaways
- SuiteCommerce supports HTML, CSS, JavaScript, and SuiteScript for site customization.
- SuiteScript 2.1 is not supported for Commerce development; use versions 1.0 or 2.0.
- Leverage the Extensibility, Commerce, and Item Search APIs for comprehensive site enhancements.
- Ensure your JavaScript customizations comply with ECMAScript 5.1 for SEO compatibility.
Frequently Asked Questions (4)
What SuiteScript versions are supported for SuiteCommerce development?
Do I need to comply with specific JavaScript standards when customizing SuiteCommerce?
Can I use SuiteScript 2.1 for non-commerce NetSuite customizations?
Is there an API that allows for shopping session customization in SuiteCommerce?
Was this article helpful?
More in SuiteScript
- Common SuiteScript Errors and Solutions for NetSuite
Common NetSuite script errors include INVALID_SCRIPT_DEPLOYMENT_ID and SSS_AUTHORIZATION_HEADER_NOT_ALLOWED. Learn effective solutions.
- Set Sublist Field Values in SuiteScript 2.x for Record Management
Set sublist field values in SuiteScript 2.x for effective record management using standard and dynamic modes.
- Setting Field Values in SuiteScript for Effective Record
Learn to set field values in SuiteScript effectively, troubleshooting common errors and understanding data types.
- SuiteScript 2.1 Enhancements and API Updates in NetSuite
SuiteScript 2.1 enables execution of 2.0 scripts and supports PATCH method for enhanced API capabilities.
Advertising
Reach SuiteScript Professionals
Put your product in front of NetSuite experts who work with SuiteScript every day.
Sponsor This Category