You are reading the documentation for Vue Storefront v2. See the latest docs.

Home > @vue-storefront/core > UseCartFactoryParams > addItem

UseCartFactoryParams.addItem property

Signature:

addItem: (context: Context, params: {
        currentCart: CART;
        product: PRODUCT;
        quantity: any;
        customQuery?: CustomQuery;
    }) => Promise<CART>;