Configures the widget for future calls to
PIO.open(options). Note that options can be passed in to both PIO.config(), PIO.options() or just one of them. See the section Config/Open Options API below for more details.
Opens the widget. Note that one can pass in preset items/images.
Closes the widget.
Returns the user’s current cart.
Returns the current number of items in the user’s cart. It is recommended that this be used in conjunction with the options
PIO.getNumItems() is great for getting a pre-launched cart’s items count wereas
fns.onCartChange() is great for changing based on the user’s live usage of the cart.
Removes all items from the user’s cart.
Retrieves widget orders post data using following code:
Important– these options can be passed into either the
PIO.config(options) function or the
PIO.open(options) function. It is recommended that one pass in items like images or items to
PIO.open(options) and pass in items like the
fns callback functions to