Class SharedShoppingCartService
Class SharedShoppingCartService
- SharedShoppingCartService implements SharedShoppingCartServiceInterface
Package: SharedShoppingCart
Category: System
Located at Services/Core/ShoppingCart/SharedShoppingCartService.inc.php
Category: System
Located at Services/Core/ShoppingCart/SharedShoppingCartService.inc.php
Methods summary
public
__construct( SharedShoppingCartRepository $repository, SharedShoppingCartSettingsInterface $settings )
SharedShoppingCartService constructor.
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.