The PDP dropin has a single container called ProductDetails. The container’s configuration options are provided below.
Configurations
The Product Details container provides the following configuration options:
Option
Type
Req?
Description
sku
string
Yes
The unique identifier for the product.
hideSku
boolean
No
Optional boolean to hide the SKU display.
hideQuantity
boolean
No
Hides the quantity selector if set to true.
hideShortDescription
boolean
No
Hides the short description if set to true.
hideDescription
boolean
No
Hides the description if set to true.
hideAttributes
boolean
No
Hides the attributes if set to true.
hideURLParams
boolean
No
Disables synchronization of options with URL parameters if true.
productData
ProductModel
No
Optional initial product data to preload the component.
slots
object
No
An object containing slot overrides for customizing various parts of the component display.
carousel
CarouselConfig
No
Configuration for the product image carousel display.
onAddToCart
function
No
Callback function triggered upon adding the product to the cart.
Sku
The sku property is the only required configuration. It’s a string that uniquely identifies the product. This value is used to fetch ProductModel data from the backend.
Hide options
The hide options (hideSku, hideQuantity, and the others) let you hide the parts of the Product Details UI that are not relevant for your storefront. These properties are optional and default to false.
ProductData
The productData property is an optional object that contains the initial product data to preload the component. The object should follow the ProductModel interface:
Slots allow for the customization of component parts. Each slot accepts a SlotProps object with a context containing data, values, and a valid state. Custom actions and content can be added through these slots.
Visit the Slots page for slot details and usage information.
Carousel
The Carousel settings available for configuration are defined in the CarouselConfig interface:
Option
Type
Req?
Description
controls
string
No
Layout options: thumbnailsRow, thumbnailsColumn, or dots
mobile
boolean
No
Whether to display the carousel on mobile devices.
loopable
boolean
No
Whether the carousel should loop continously or stop at the end.
peak
object
No
Whether to show part of the next image on mobile and desktop.
thumbnailsLoadingMode
string
No
The loading mode for the thumbnails, lazy or eager.