Home > @vsf-enterprise/commercetools > UseCart

# UseCart interface

Signature:

export interface UseCart<CART, CART_ITEM, PRODUCT, API extends PlatformApi = any> extends Composable<API> 

Extends: Composable<API>

# Properties

Property Type Description
cart ComputedProperty<CART>
error ComputedProperty<UseCartErrors>
isInCart ({ product: PRODUCT }: { product: any; }) => boolean
loading ComputedProperty<boolean>

# Methods

Method Description
addItem(params)
applyCoupon(params)
clear()
load()
load(params)
removeCoupon(params)
removeItem(params)
setCart(cart)
setItemSupplyChannel(params)
updateItemQty(params)