Multi-Cart Bundling Specification: SFCC
Overview
Multi-SKU bundling simplifies the user experience by enabling users to add a stack of multiple products to their cart with a single click.
Requirements
To set up multi-SKU cart bundling for SFCC-based storefront, it’s typically requested to:
- enable access to SFCC OCAPI endpoint for Tangiblee
- provide client_id for API requests
- share API version and siteID
How it works
Tangiblee will use 2 API endpoints.
1. API to retrieve product variants by product id (or product slug):
a. variation id;
b. price;
c. in stock availability;
d. option (size, color, etc)
(where product_id is a master product id and client_id is provided by client)
- Push selected items to cart one-by-one by the variation id:
The data is passed in the Request Body to the ATC endpoint:
As an option, we may also send a request to add selected products to the cart all at once using pidsObj:
References
CORS enabling: Salesforce Commerce Cloud Infocenter
AddToBag Controller: https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/current/sfrajsdoc/js/server/app_storefront_base_cartridge_controllers_Cart.js.html