Basket
In this section, we will cover the basics of baskets. We will show you how to use baskets in a variety of ways.
Overview
In SalesForce Commerce Cloud SDK module, we provide a set of methods to work with baskets. You can create a basket, add products to a basket, remove products from a basket, and update products in a basket. Also, there is a way to add coupons, gift certificates, and payment instruments to a basket. Additionally, you can set billing information and customer information for a basket.
References
| Method | Description |
|---|---|
| createBasket | Create a basket |
| getBasket | Gets a basket |
| addProductsToBasket | Adds product to a basket |
| removeProductFromBasket | Removes product from a basket |
| updateProductInBasket | Update product in a basket |
| addCouponToBasket | Adds coupon to a basket |
| removeCouponFromBasket | Removes coupon from a basket |
| addGiftCertificateToBasket | Adds gift certificate to a basket |
| removeGiftCertificateFromBasket | Removes gift certificate from a basket |
| updateGiftCertificateInBasket | Updates gift certificate in a basket |
| addPaymentInstrumentToBasket | Adds payment instrument to a basket |
| removePaymentInstrumentFromBasket | Removes payment instrument from a basket |
| updatePaymentInstrumentInBasket | Updates payment instrument in a basket |
| setBasketBillingAddress | Sets basket billing information |
| setBasketCustomerInfo | Sets basket customer information |