Skip to Content
ReferenceBanner catalogCompact product details banner

Compact product details banner

Audience: CMS editors and developers.

Type: CompactProductDetailBlockBanner.

This compact banner shows Shopify product details with a variant selected in the CMS.

This banner includes the common banner props.

Compact product detail block

Properties

id●
string
required

CMS ID.

product●
Shopify.Storefront.Product
required

Shopify storefront product selected in CMS.

selectedVariantId●
string
required

Preselected Shopify variant gid configured in CMS.

Behavior and limits

  • The banner uses selectedVariantId as the fixed variant selection.
  • The banner uses the cart integration and quantity handling from the full detail block.
  • The banner shows a variant hint when the product has multiple variants.

Example

const banner: CompactProductDetailBlockBanner = { typename: BannerTypename.CompactProductDetailBlock, id: 'b_123', title: 'Produkt kompakt', titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, product: {} as Shopify.Storefront.Product, selectedVariantId: 'gid://shopify/ProductVariant/123' };
Last updated on