Skip to main content

Tangiblee Help Center

Specification for the bundling several cartons: SFCC

Last Updated:
May 12, 2026

Overview

Die Bündelung mehrerer SKUs vereinfacht die Benutzererfahrung, da Benutzer mit einem einzigen Klick einen Stapel mehrerer Produkte in ihren Warenkorb legen können.

Anforderungen

Um das Warenkorb-Bündel mit mehreren SKUs für ein SFCC-basiertes Schaufenstergeschäft einzurichten, wird in der folgenden Regel angefordert:

  • Activate access to SFCC OCAPI Endpunkt für Tangiblee
  • versorgen Customer-ID for api questions
  • teilen API-Version und Standort-ID

So funktioniert

Tangiblee wird 2 API-Endpunkte verwenden.

1. API to access of product variant by product id (or product slug):

a. Varianten-ID;

b. Preis;

c. Verfügbarkeit auf Lager;

d. Option (Größe, Farbe usw.)


GET: https://<client.domain>/s/Sites-en-GBSite/dw/shop/v17_8/products/<product_id>?client_id=<client_id>&expand=availability,prices,variations>

(wobei product_id eine Master-Produkt-ID ist und client_id vom Kunden bereitgestellt wird)

  1. Shift the selected article nacheinander anhand der Varianten-ID in den Warenkorb:

POST: https://<client.domain>/on/demandware.store/Sites-en-GB-Site/en_GB/Cart-AddProduct

The data are transferred in the Request Body to the ATC end point:


cartAction='add'
pid=<variant_id>
Quantity=1

Optional can we send with pidsoBJ also a request to put selected products on once in the cart:


pid=''
pdsObj=[{ pid: variants[0], qty: '1' }, { pid: variants[1], qty: '1' }]
Quantity=1
 


References

OCAPI-Dokumente: https://documentation.b2c.commercecloud.salesforce.com/DOC2/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fshop%2FResources%2FProducts.html&cp=0_15_3_12

CORS aktiviert: Informationszentrum für Salesforce Commerce Cloud

Add to the bag controller: https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/current/sfrajsdoc/js/server/app_storefront_base_cartridge_controllers_Cart.js.html

Related Resources