GitHub

DaffCartItemAdd

Triggers the addition of a product to the cart.

import { DaffCartItemAdd } from '@daffodil/cart/state'
class DaffCartItemAdd<<T extends DaffCartItemInput = DaffCartItemInput>>  implements Action {
  readonly type: DaffCartItemActionTypes.CartItemAddAction
  input: T
  placeholderId: string
}

Properties

Name Type Description
type DaffCartItemActionTypes.CartItemAddAction
input T
placeholderId string