API Docs for: 2.18.0
Show:

mParticle.Identity.getCurrentUser().getCart() Class

Defined in: src/identity.js:1239

This class is deprecated.

Invoke these methods on the mParticle.Identity.getCurrentUser().getCart() object. Example: mParticle.Identity.getCurrentUser().getCart().add(...);

Item Index

Methods

Methods

add

(
  • product
  • [logEvent]
)
deprecated

Adds a cart product to the user cart

Parameters:

  • product Object

    the product

  • [logEvent] Boolean optional

    a boolean to log adding of the cart object. If blank, no logging occurs.

clear

() deprecated

Clears the user's cart

getCartProducts

() Array deprecated

Returns all cart products

Returns:

Array:

array of cart products

remove

(
  • product
  • [logEvent]
)
deprecated

Removes a cart product from the current user cart

Parameters:

  • product Object

    the product

  • [logEvent] Boolean optional

    a boolean to log adding of the cart object. If blank, no logging occurs.