Interface SharedShoppingCartServiceInterface

Interface SharedShoppingCartServiceInterface

Direct known implementers

SharedShoppingCartService

Methods summary

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

Stores the cart and returns the hash

public getShoppingCart( StringType $shoppingCartHash ) : array

Gets the content of the shopping cart corresponding to the hash

public deleteExpiredShoppingCarts( void )

Deletes all shared shopping carts that exceeded the configured life period

public deleteShoppingCartsByCustomerId( IdType $customerId )

Deletes all shared shopping carts by a given customer ID.

public getShoppingCartsByCustomerId( IdType $customerId ) : SharedShoppingCartCollection

Gets a collection of all shared shopping carts by a given customer ID.