fdk-cart
You are reading an outdated document
Get the latest developer guides on Fynd Partners Help
This action component is used to perform cart actions including, adding items to cart, updating cart items, removing cart items, removing coupons, applying removing rewards points, updating cart meta information including employee details and GST number and comments.
Props
Key | Type | Description |
---|---|---|
addToCart | function | it is used to add items to cart, list of objects of item is passed as parameter in the function |
updateCart | function | it is used to increase or decrease items quantity in cart, object of item is passed as parameter |
removeCart | function | it is used to remove item with any quantity from cart, object of item is passed as parameter |
updateCartMeta | function | it is used to update the cart meta information including comments, gst details and employee name, meta information is passed as body along with bag id |
updateRewardsPoints | function | it is used to add or remove user's rewards point |
removeCoupon | function | it is used to remove applied coupon, bag id is passed as parameter |
updateCheckoutMode | function | it is used to add or remove checkout mode, checkout mode is passed along with bag id as parameter |
Example
<fdk-cart>
<template slot-scope="cart">
///code
</template
</fdk-cart>