Skip to content
On this page

getCart ​

Definition ​

Gets the current cart for the sw-context-token.

Signature ​

ts
export async function getCart(
  contextInstance: ShopwareApiInstance = defaultInstance,
): Promise<Cart> 

Parameters ​

NameTypeDescription
contextInstance
ShopwareApiInstance

Return type ​

ts
Promise<Cart>

Usage example ​

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

getCart has loaded