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.

Properties
id●required
string
CMS ID.
product●required
Shopify.Storefront.Product
Shopify storefront product selected in CMS.
selectedVariantId●required
string
Preselected Shopify variant gid configured in CMS.
Behavior and limits
- The banner uses
selectedVariantIdas 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