Resolving Permission Errors in Scriptable Cart

When you use custom records with Scriptable Cart, you may encounter permission errors when adding items in the shopping cart, or when attempting to check out. In most cases, careful review of the custom record you created, and the code in your script can resolve the problem.

For example, a common mistake is to code the script to use the current entity ID, and then test the script without logging in. Ensure that your script handles the case where the shopper is not logged in.

Use the guidelines listed below to help resolve any permission errors you may observe.

If you are still observing permission errors, try simplifying the script to its most basic components. Wrap each call in a try-catch statement, and then log any errors. See also, Scriptable Cart FAQ.

Related Topics

Testing Scriptable Cart
Debugging Your Shopping Cart Scripts Using Firebug
Debugging Your Scriptable Cart with SuiteScript
Deploying and Running Scriptable Cart

General Notices