Cart¶

Configuration for adding products to the cart from the TryOn results screen.
TryOnCartFeature {
outfit: TryOnCartOutfitFeature | null // (1)!
strings {
addToCart: String // (2)!
}
handler {
addToCartAction: Callback(String) // (3)!
}
}
- Optional configuration for adding all items from a multi-item try-on outfit to the cart at once ("Shop the Look").
- Label text for the button that adds the current product to the cart.
- Callback function that handles adding a product to the cart using its identifier.
Cart Outfit¶
Configuration for outfit/multi-item cart functionality. Enables a "Shop the Look" button that adds all products from the current outfit to the cart at once. Only applicable when using multi-item try-on.
TryOnCartOutfitFeature {
strings {
addToCartOutfit: String // (1)!
}
handler {
addToCartOutfitAction: Callback(List<String>) // (2)!
}
}
- Label text for the "Shop the Look" button that adds all outfit products to the cart.
- Callback function that handles adding multiple products from an outfit to the cart.
{"Callback": "/sdk/developer/definitions/#callback", "List": "/sdk/developer/definitions/#list", "String": "/sdk/developer/definitions/#string", "TryOnCartOutfitFeature": "#cart-outfit", "null": "/sdk/developer/definitions/#optional"}