Shopping Objects

The Commerce API includes only one object that is globally accessible in the SuiteScript context, the webContainer object.

The following table lists the objects that are accessible after you have gotten a webContainer. The table also lists the calls you can use to get a reference to each object. You need a reference to a shopping object to call its methods.

Object

Description

Call to get Object

For available methods, see:

shoppingSession

Tracks session context.

nlapiGetWebContainer().getShoppingSession()

ShoppingSession Methods

customer

Holds data for the logged in customer.

nlapiGetWebContainer().getShoppingSession().getCustomer()

Customer Methods

order

Holds shopping cart data and methods for placing the order.

nlapiGetWebContainer().getShoppingSession().getOrder()

Order Methods

pageGenerator

Used to generate web pages.

nlapiGetWebContainer().getPageGenerator()

PageGenerator Methods

standardTagLibrary

Implements web site tags.

nlapiGetWebContainer().getStandardTagLibrary()

StandardTagLibrary Methods

Note the following:

Related Topics:

General Notices