N/commerce Modules for SuiteCommerce Development
N/commerce modules streamline SuiteCommerce development, enabling quick access to web store assets with SuiteScript 2.x.
The N/commerce namespace provides a set of modules designed for use with SuiteScript 2.x within SuiteCommerce applications. These modules offer a consistent development experience for web developers working with Commerce APIs. Although N/commerce is not a standalone module, it provides the critical resources needed to access various assets in the web store context effectively.
What Modules Are Available in N/commerce?
The core module currently available in the N/commerce namespace is:
| Module Name | Description |
|---|---|
| N/commerce/recordView | This module enables fast, cached, and public access to item fields and website settings. |
Important Notes
Before loading modules from the N/commerce namespace, an active shopping session is required. While many web store interactions can be managed through these modules, not all functionality is currently supported. To fully customize web store operations on the SuiteCloud platform, developers can also utilize the Commerce APIs, albeit limited to SuiteScript 1.0 for those scenarios.
N/commerce/recordView Module Members
To dive deeper into the N/commerce/recordView module, here’s an overview of its members:
| Member Type | Name | Return Type | Supported Script Types | Description |
|---|---|---|---|---|
| Method | recordView.viewItems(options) | Object | array | Retrieves one or more items with specified item fields. |
| Method | recordView.viewWebsite(options) | Object | Client and server scripts | Gets website details, returning requested website fields. |
Developers writing client and server scripts can easily retrieve item and website data through these methods.
Who This Affects
The following roles and modules may find the N/commerce namespace particularly beneficial:
- Web Developers: Engaging with SuiteCommerce and enhancing customer experiences.
- Administrators: Managing eCommerce transactions and configurations.
Key Takeaways
- The N/commerce namespace simplifies SuiteCommerce application development using SuiteScript 2.x.
- It currently includes the
N/commerce/recordViewmodule for accessing item and website data efficiently. - Developers must initiate an active shopping session before working with these modules.
- Some Commerce API functionalities are accessible only with SuiteScript 1.0.
- Continuous improvements and updates to these modules are expected in future releases.
Frequently Asked Questions (4)
Which modules are available in the N/commerce namespace for SuiteCommerce development?
Are there any prerequisites for using N/commerce modules in SuiteCommerce?
What script types are supported by the methods in the N/commerce/recordView module?
Can developers use SuiteScript 1.0 with the N/commerce namespace?
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