Ask A Guru

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!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Make Your Voice Heard: What Tech & ERP Topics Should We Explore in our Next Webinar?? We’re all ears! Vote now, and the poll runs until January. Poll for ERP | Poll for Tech.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.1 Release Preview account, review the topics outlined in the Release Preview Guide.
NetSuite Release 2025.1 Release Notes are available for download here!

How to determine whether SuiteCommerce user is logged in?

edited Apr 6, 2023 8:04PM in Ask A Guru 16 comments

I am injecting HTML and Javascript into every SuiteCommerce page, because SuiteCommerce does not seem to provide a better way to alter functionality and display in the way we need.

In particular, we need to get the internalid of the logged-in user's Customer record and send that with requests to two suitelets to calculate things like unit of measure conversions and freight cost (using full truckload carriers rather than parcels, which is also not supported by NetSuite), so these can give the user an accurate display of what they're buying before they complete checkout.

I got this to work by forcing the page to repeat this instruction:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!