vtex.buybutton

0.0.2 • Public • Published

BuyButton

BuyButton is a canonical component that any VTEX store can install.

Usage

TODO

Configuration

/**
 * The quantity of products to be added to the cart
 */
- quantity
  - Type: Number

/**
 * The specification of wich product will be added to the cart.
 */
- skuId
  - Type: Number

/**
 * Wich seller is being referenced by the button.
 */
- seller
  - Type: String

/**
 * Sales channel.
 */
- salesChannel
  - Type: String

/**
 * Graphql property to call a mutation.
 */
- mutate
  - Type: Function

/**
 * Function that will be called after the mutation.
 */
- afterClick
  - Type: Function

/**
 * The users cart id
 */
- orderFormId
  - Type: String

Troubleshooting

You can check if others are experiencing similar issues here. Also feel free to open issues.

Contributing

TODO

Readme

Keywords

none

Package Sidebar

Install

npm i vtex.buybutton

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

378 kB

Total Files

4

Last publish

Collaborators

  • salesfelipe