Skip to content

ProductDetails container (deprecated)

The legacy ProductDetails container (deprecated) renders a full product details experience from one component. This topic lists configuration parameters and slot names for older integrations.

Version: 3.0.2

The ProductDetails container (deprecated) provides the following configuration options:

ParameterTypeReq?Description
skustringYesSKU of the product to load.
productDataProductModelNoOptional pre-fetched product data.
hideSkubooleanNoHides the SKU when set to true.
hideQuantitybooleanNoHides the quantity selector when set to true.
hideShortDescriptionbooleanNoHides the short description when set to true.
hideDescriptionbooleanNoHides the long description when set to true.
hideAttributesbooleanNoHides the attributes block when set to true.
hideSelectedOptionValuebooleanNoHides the selected option value display when set to true.
hideURLParamsbooleanNoStops reading product context from URL parameters when set to true.
carouselCarouselConfigNoCarousel configuration for the gallery.
optionsConfigOptionsConfigNoOptions UI configuration.
useACDLbooleanNoEnables Adobe Client Data Layer integration when set to true.
onAddToCartfunctionNoCallback invoked when the shopper adds to cart.
zoomType'zoom' | 'overlay'NoImage zoom behavior.
closeButtonbooleanNoShows or hides a close control where applicable.
disableDropdownPreselectionbooleanNoDisables preselecting the first dropdown option when set to true.

This container exposes the following slots for customization. For examples and TypeScript shapes, see ProductDetails (deprecated) slots.

SlotTypeRequiredDescription
TitleSlotPropsNoTitle area of the PDP.
SKUSlotPropsNoSKU line.
RegularPriceSlotPropsNoRegular price display.
SpecialPriceSlotPropsNoSpecial or sale price display.
OptionsSlotPropsNoConfigurable options UI.
QuantitySlotPropsNoQuantity selector.
ActionsSlotPropsNoPrimary actions region (for example, add to cart).
ShortDescriptionSlotPropsNoShort description block.
DescriptionSlotPropsNoLong description block.
AttributesSlotPropsNoAttributes list.
BreadcrumbsSlotPropsNoBreadcrumb trail.
GalleryContentSlotPropsNoGallery region content.
InfoContentSlotPropsNoSecondary info column content.
ContentSlotPropsNoGeneral content region.

The following example shows how older code rendered the ProductDetails container (deprecated):

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