SharedShoppingCartServiceInterface

Extends

Interface SharedShoppingCartServiceInterface

category

System

package

SharedShoppingCart

subpackage

Interfaces

Methods

Deletes all shared shopping carts that exceeded the configured life period

deleteExpiredShoppingCarts() 

Gets the content of the shopping cart corresponding to the hash

getShoppingCart(\StringType $shoppingCartHash) : array

Arguments

$shoppingCartHash

\StringType

Hash of the shopping cart

Response

array

Content of the shopping cart

Stores the cart and returns the hash

storeShoppingCart(array $shoppingCartContent, \IdType|null $userId = null) : string

Arguments

$shoppingCartContent

array

The cart content

$userId

\IdType|null

The user ID of the user who is sharing the cart

Response

string

The hash of the cart