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.

·2 min read·View Oracle Docs

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.

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

Frequently Asked Questions (4)

Does Scriptable Cart functionality apply to both NetSuite Commerce websites and back office transactions?
Yes, Scriptable Cart functionality allows for custom scripting on both Commerce websites and back office transactions in NetSuite.
How can I diagnose performance issues related to Scriptable Cart in NetSuite?
To diagnose running scripts affecting performance, navigate to Customization > Scripting > Scripted Records > Sales Order within NetSuite.
What settings can I adjust to control where Scriptable Cart scripts run?
You can adjust script deployment settings by checking or unchecking 'All Roles' and 'All Employees' to control whether the script runs on websites or solely in the backend environment.
What are some potential performance issues with Scriptable Cart in NetSuite Commerce?
Performance lags can occur when scripts block the application, notably when adding items to the cart or during the checkout wizard.
Source: Scriptable Cart 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 Commerce

View all Commerce articles →