Skip to content

getCart

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