Scriptable cart is functionality that is server-side JavaScript and SuiteScript that runs when a shopper is checking out.
Used for:
- Connecting to a third-party tax calculator
- Changing price levels of items in a way native functionality cannot
- Creating buy one / get one type offers in a way the promotions engine cannot
- Paying using stored loyalty points
- Accepting charitable donations
scriptable cart is a single SuiteScript file that you deploy to your NetSuite instance that executes when a sales order is being created.
Basic Process for Setting Up Scriptable Cart:
- Enable features on your site
- Set up any required custom records, columns, fields, etc, you may need for your script
- Write the script
- Upload the script
- Create a script record
- Deploy the script
Enable features on your site
Go to Setup > Company > Enable Features and then check Web Presence > Advanced Site Customization and SuiteCloud > Client SuiteScript.