Home > @shopware-pwa/shopware-6-client > addCartItems

# addCartItems() function

Adds multiple items to the cart. Accepts every type of cart item.

Signature:

export declare function addCartItems(items: Partial<LineItem>[], contextInstance?: ShopwareApiInstance): Promise<any>;

# Parameters

Parameter Type Description
items Partial<LineItem>[]
contextInstance ShopwareApiInstance

Returns:

Promise<any>

# Exceptions

ClientApiError