Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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?