Skip to Content
ReferenceBanner catalogProduct details banner

Product details banner

Audience: CMS editors and developers.

Type: ProductDetailBlockBanner.

This banner shows Shopify product details, an image gallery, variant selection, prices, and an add-to-cart action.

This banner includes the common banner props.

Product detail block

Properties

id●
string
required

CMS ID.

product●
Shopify.Storefront.Product
required

Shopify storefront product selected in CMS.

Behavior and limits

  • The banner initially selects the configured Shopify default variant when it belongs to the product and is available.
  • Otherwise, it selects the cheapest variant.
  • The banner updates the gallery and purchase state for the selected variant.
  • The banner updates the cart session with the merchandise variant ID and quantity.
  • The banner shows additional product metafields in detail tabs.

Example

const banner: ProductDetailBlockBanner = { typename: BannerTypename.ProductDetailBlock, id: 'b_123', title: 'Produktdetails', titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, product: {} as Shopify.Storefront.Product };
Last updated on