Skip to content

ProductDetails Container

ADOBE CONFIDENTIAL

Version: 1.3.5

Configuration

The ProductDetails container provides the following configuration options:

ParameterTypeReq?Description
skustringYes
productDataProductModelNo
hideSkubooleanNo
hideQuantitybooleanNo
hideShortDescriptionbooleanNo
hideDescriptionbooleanNo
hideAttributesbooleanNo
hideSelectedOptionValuebooleanNo
hideURLParamsbooleanNo
carouselCarouselConfigNo
optionsConfigOptionsConfigNo
useACDLbooleanNo
onAddToCartfunctionNoCallback function triggered when add to cart
zoomType'zoom' | 'overlay'No
closeButtonbooleanNo
disableDropdownPreselectionbooleanNo

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
TitleSlotPropsNo
SKUSlotPropsNo
RegularPriceSlotPropsNo
SpecialPriceSlotPropsNo
OptionsSlotPropsNo
QuantitySlotPropsNo
ActionsSlotPropsNo
ShortDescriptionSlotPropsNo
DescriptionSlotPropsNo
AttributesSlotPropsNo
BreadcrumbsSlotPropsNo
GalleryContentSlotPropsNo
InfoContentSlotPropsNo
ContentSlotPropsNo

Usage

The following example demonstrates how to use the ProductDetails container:

import { render as provider } from '@dropins/storefront-pdp/render.js';
import { ProductDetails } from '@dropins/storefront-pdp/containers/ProductDetails.js';
await provider.render(ProductDetails, {
sku: "PRODUCT-SKU-123",
productData: productData,
hideSku: true,
slots: {
// Add custom slot implementations here
}
})(block);