mParticle.Identity.getCurrentUser().getCart() Class
This class is deprecated.
Invoke these methods on the mParticle.Identity.getCurrentUser().getCart() object. Example: mParticle.Identity.getCurrentUser().getCart().add(...);
Item Index
Methods
- add deprecated
- clear deprecated
- getCartProducts deprecated
- remove deprecated
Methods
add
(
deprecated
-
product
-
[logEvent]
Adds a cart product to the user cart
Parameters:
-
product
Objectthe product
-
[logEvent]
Boolean optionala 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
(
deprecated
-
product
-
[logEvent]
Removes a cart product from the current user cart
Parameters:
-
product
Objectthe product
-
[logEvent]
Boolean optionala boolean to log adding of the cart object. If blank, no logging occurs.