Hey Guys. I’ve been meaning to post this up but lost track of time due to extermination work I’ve been doing.
Couple months ago, I’ve worked with Jason K from NetSuite to trouble shoot remove/add issues I was having with my particular scriptable cart process. What this code is SUPPOSED to do:
When an item is added with certain country, it pro grammatically adds country specific surcharge item to the cart. In increments existing surcharge item in the cart if it already exists, it adds new country item if it doesn’t exists. Removing parent item will also either increments or decrements the surcharge item.
I have not tried out his code personally but he assures me that it worked for him when he was fully testing out the process in his environment.
I’m hoping this will help in your effort to implement Webstore Scriptable Cart/Checkout form:
Webstore Scriptable Cart Sample
** You must be logged in to view this content. **



I have used the Scriptable cart using external forms but I am not able to use “alert” function on the script as you have used in code sample. The script simply ignores the alert function. Am I doing something wrong?
Hi Saqib. Alerts ONLY work when you run it as NetSuite UI. You can open External Sales Order form in NetSuite and test it to see if your script works. In that case Alerts will work. On Webstore, alerts are useless. As you said, they are ignored. Only way i found is to use Suitelet option.