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, global client scripts, and the 'N/ui module
I am attempting to enable scriptable cart in an account that has a global suitescript 2.0 client script and running into an issue. The N/ui module is not defined when the script runs in the context of the webstore.
I have come up with the following work-arounds:
1. Switch to form level client script and use a different custom form for orders originating from the web store - bad for maintenance effort
2. Reference all modules with define(['N'], function(nModule) { /* code goes here */ }); - bad for performance
3. Undeploy the script from certain roles - potentially the best option
Any other ideas?
0