Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Have questions or experiences to share? Post your Release 2026.1 questions and join discussions in the Release 2026.1 category.
Scriptable Cart Add Item to Cart Problem
I am trying to add an item to my cart programmatically using suite script. I wrote the following recalc code that gets executed (just a snippet).
-------------
function recalcCart(type, name)
{
//PRE PROCESSING
nlapiSelectNewLineItem('item');
nlapiSetCurrentLineItemValue('item','item','1000',true,true);
nlapiSetCurrentLineItemValue('item','quantity',5,true,true);
nlapiSetCurrentLineItemValue('item','price', 1, true, true); //set to custom price
nlapiCommitLineItem('item');
//POST PROCESSING
}
----------
While the item gets added, I am apparently not setting all the correct fields. The quantity box shows the correct quantity, but it is disabled. The Remove [x] does not display. Then when I update the cart the item will just disappear.