Class SharedShoppingCartService
| category |
System |
|---|---|
| package |
SharedShoppingCart |
__construct(\SharedShoppingCartRepository $repository, \SharedShoppingCartSettingsInterface $settings)
deleteExpiredShoppingCarts()
deleteShoppingCartsByCustomerId(\IdType $customerId)
getShoppingCart(\StringType $shoppingCartHash) : array
arrayContent of the shopping cart
getShoppingCartsByCustomerId(\IdType $customerId) : \SharedShoppingCartCollection
storeShoppingCart(array $shoppingCartContent, \IdType|null $userId = null) : string
arrayThe cart content
stringThe hash of the cart
settings : \SharedShoppingCartSettingsInterface