Scriptable Cart Functionality in NetSuite Commerce
Scriptable Cart enables custom scripts in NetSuite Commerce websites and back office transactions, but may lead to performance issues.
TL;DR Opening
Scriptable Cart functionality allows for custom scripting on both Commerce websites and back office transactions in NetSuite. Though powerful for integrating third-party services and executing custom actions, users may encounter performance issues that affect user experience.
What is the Scriptable Cart?
The Scriptable Cart feature allows developers to implement custom scripts that can run in both eCommerce environments and backend sales transactions. This capability is particularly useful for executing additional actions or interfacing with third-party services. Importantly, many scripts tend to be blocking, which means the application must wait for these scripts to complete before proceeding, potentially resulting in delays for users.
Performance Considerations
Potential Issues
When using Scriptable Cart, performance lags can occur, especially when scripts are triggered by changes to line items in a shopping cart. Notable areas where performance issues are often observed include:
- Adding items to the cart
- The checkout wizard
To diagnose running scripts that may be affecting performance, navigate to Customization > Scripting > Scripted Records > Sales Order within NetSuite.
Script Deployment Settings
It’s also common to face performance degradation when scripts run unnecessarily on websites instead of being limited to back office activities. In such situations, administrators can adjust the script deployment settings:
- All Roles checked and All Employees unchecked: the script executes on the website.
- All Roles unchecked and All Employees checked: the script executes solely in the backend environment.
Note
This method offers a provisional solution. For lasting performance improvement, developers should refine their scripts to enhance efficiency, ensuring the best user experience.
Key Takeaways
- Scriptable Cart connects custom scripts to Commerce websites and sales transactions.
- Potential blocking issues can frustrate users by delaying actions.
- Administrators can limit script execution environments through deployment settings.
- Long-term improvements require script optimization for performance.
Frequently Asked Questions (4)
Does Scriptable Cart functionality apply to both NetSuite Commerce websites and back office transactions?
How can I diagnose performance issues related to Scriptable Cart in NetSuite?
What settings can I adjust to control where Scriptable Cart scripts run?
What are some potential performance issues with Scriptable Cart in NetSuite Commerce?
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