AddToCartSuccessSheet

The AddToCartSuccessSheet SDK is a bottom sheet that is displayed to your customers after they have successfully added an item to their cart. It shows the added product and supports dynamic content components, allowing you to recommend additional products, display promotions, or any other custom content.

Start using the AddToCartSuccessSheet SDK

The platform module includes the AddToCartSuccessSheet SDK. To show the bottom sheet, use the AddToCartSuccessSheetFragment.showAddToCartSuccessSheet method, passing the AddToCartRequest, the resulting Cart and an optional rectified quantity:

AddToCartSuccessSheetFragment.showAddToCartSuccessSheet(
activity = activity,
addToCartRequest = addToCartRequest,
cart = cart,
rectifiedQuantity = rectifiedQuantity,
)

Koin modules

The AddToCartSuccessSheet SDK dependencies are injected using Koin. AddToCartSuccessSheet SDK provides the default dependencies definitions via this Koin module:

  • addToCartSuccessSheetModule

Dynamic content

The AddToCartSuccessSheet renders dynamic content components delivered through the Cart.slots for the addToCartSheet slot. This allows you to configure the content of the bottom sheet remotely without changing the client app.