Supported Scripts and APIs for SuiteCommerce Customization

SuiteCommerce allows customization using various web scripts and APIs, including SuiteScript and Extensibility API for enhanced functionality.

·2 min read·1 views·View Oracle Docs

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:

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:

APIDescriptionCan be used withFor more information
Extensibility APIClass and methods for accessing routers, models, and views to customize behavior without altering core application code.SuiteCommerce, Aconcagua release and laterOverview, Extension Tutorials
Commerce APIMethods to access shopping objects like customers and orders during shopping sessions for customization.SuiteCommerce, All releases of SCACommerce API, Shopping Objects
Item Search APIFacilitates 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 SCAItem 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.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

What SuiteScript versions are supported for SuiteCommerce development?
SuiteCommerce supports SuiteScript versions 1.0 and 2.0. SuiteScript 2.1 is not supported for Commerce website development.
Do I need to comply with specific JavaScript standards when customizing SuiteCommerce?
Yes, ensure your JavaScript customizations comply with ECMAScript 5.1 for SEO compatibility.
Can I use SuiteScript 2.1 for non-commerce NetSuite customizations?
The article specifies that SuiteScript 2.1 is not supported for Commerce development, but it does not address its availability for other types of NetSuite customizations.
Is there an API that allows for shopping session customization in SuiteCommerce?
Yes, the Commerce API provides methods to access shopping objects like customers and orders during shopping sessions for customization, compatible with all releases of SuiteCommerce Advanced.
Source: Supported Scripts, Languages, and APIs 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 SuiteScript

View all SuiteScript articles →