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
Reference Checkout 2.03 - How to get the cart item count?
What is the "correct" way of getting the cart item count on a custom script that runs on index.ssp ?
I understand that the cart item count is in the cart summary, but I need to show it when that is not available, like when logging in via RC 2.03 AND I'm showing it at a different location on index.ssp than within the cart summary module.
On index.ssp you can use some of the normal Web Site Tags, like getPageHeadFull(), but the documentation, and testing on the page, indicates that getCartItemCount() does not work.
I've been trying various methods of getting the field values for the items in the order and then loop through and add up the quantities. But I haven't come up with the right code or calls I should be using.