Appearance
getCart
Definition
Gets the current cart for the sw-context-token.
Signature
ts
export async function getCart(
contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<Cart>
Parameters
Name | Type | Description |
---|---|---|
contextInstance | ShopwareApiInstance |
Return type
ts
Promise<Cart>
Usage example
WARNING
Example is generated automatically. Sometimes it's required to be adjusted to your needs.