Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
beforeLoad and Web Store
The business goal is to dynamically display "FREE SHIPPING" if the online price of an item is greater than x.
I have created a test script for beforeLoad on the item. The beforeLoad is executing as I see the log.
The code:
var vShipping = "/site/templates/ct-itemtemplate-freeshippin.jpg";
nlapiSetFieldValue('custitem_ship_cost', vShipping);
nlapiLogExecution("Debug", "vShipping v1.0",
"vShipping="
+vShipping
);
When I view this in the UI, it works and custitem_ship_cost=/site/templates/ct-itemtemplate-freeshippin.jpg
When I view this in the web store, it does not work
custitem_ship_cost='' (it does will not display a value).
Would anyone know if it is possible to use a beforeLoad and expect the results to display on a item drill down?