SharedShoppingCartReaderInterface
in
Interface SharedShoppingCartReaderInterface
Tags
Table of Contents
- getShoppingCart() : string
- Gets the content in JSON format of the shopping cart corresponding to the hash
- getShoppingCartsByCustomerId() : SharedShoppingCartCollection
- Gets a collection of all shared shopping carts by a given customer ID.
Methods
getShoppingCart()
Gets the content in JSON format of the shopping cart corresponding to the hash
public
getShoppingCart(StringType $shoppingCartHash) : string
Parameters
- $shoppingCartHash : StringType
-
Hash of the shopping cart
Return values
string —JSON representation of the shopping cart
getShoppingCartsByCustomerId()
Gets a collection of all shared shopping carts by a given customer ID.
public
getShoppingCartsByCustomerId(IdType $customerId) : SharedShoppingCartCollection
Parameters
- $customerId : IdType