Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Scriptable cart working in NetSuite but not in checkout
Long story short, I'm trying to add some items to the cart if one item is added. I've hit a wall, and any help would be appreciated.
I have this script on a recalc.
In NetSuite, it works as desired.
In checkout, it adds the items if I omit the check for the item (line 6) and put it on a parseint, but the rate, amount and description appear to not be set.
(Most of) the script:
function quoteitemtocart(type, action) {
// if (type != 'item') { return; }
var quoteitem = 225353;
var currentitem = nlapiGetCurrentLineItemValue('item', 'item');
// var quoteincart = nlapiGetFieldValue('custbody_quoteincart'); //use to prevent dups from being added, use to pass info to SO, use to remove items
0