Skip to Content
ReferenceBanner catalogVehicle recommendations banner

Vehicle recommendations banner

Audience: CMS editors and developers.

Type: UpsellVehiclesBlockBanner.

This banner shows vehicle recommendations in a horizontal scroll area. It uses an existing deal or inventory vehicle as the seed. Recommendations give priority to the same vehicle class. They can include deals and inventory together.

This banner includes the common banner props. For Shopify products, use UpsellBlockBanner.

CMS fields and rendered properties

CMS fieldRendered propMeaning / default
foreignEntityIdforeignEntityIdRequired for a usable banner; resolved by the selected source’s existing vehicle lookup
upsellVehiclesRecommendationModerecommendationModedeal (default) or inventory
upsellRecommendationLimitrecommendationLimitMaximum total cards, default 10, minimum 1
crossSellEnabledcrossSellEnabledAllow both sources; default false
imageBlockObjectFitimageObjectFitShared banner image-fit setting

crossSellEnabled controls eligible recommendation sources. The banner has no navigation setting.

Properties

id●
string
required

CMS banner id; distinct from the reference vehicle identifier.

foreignEntityId●
string
required

Reference vehicle identifier resolved in the selected source.

recommendationMode●
'deal' | 'inventory'
required

Source of the reference vehicle. Defaults to deal in CMS configuration.

recommendationLimit●
number
required

Maximum total recommendations displayed, not the API page size. Default 10; minimum 1.

crossSellEnabled●
boolean
required

Allow deal and inventory candidates together. Defaults to false.

imageObjectFit●
'cover' | 'contain'

Shared image-fit setting passed to both inventory and deal cards.

Rendering and loading

  • Inventory recommendations use the inventory archive card (CarListItem). Deal recommendations use CarDealBlock through the deal archive adapter. Prices, actions, and disclosures follow these components.
  • Inventory cards support the consumption-information dialog when the required data is available.
  • Cards form a horizontal strip with scroll snapping and a hidden scrollbar. There is no wrapping archive grid or navigation toggle.
  • Card width uses a three-column archive’s maximum content width: min(100%, (var(--max-width-content) - 3rem) / 3). It does not use one third of the viewport. A wide scroll area can show more than three cards. A narrow container limits each card to the available width.
  • Recommendations load in the browser, with session credentials included. Skeleton cards reserve space during loading and for the upcoming page.
  • The first page loads immediately. More pages load when the end marker enters the strip’s scroll area. Loading stops at the configured limit or the API’s last page.
  • The renderer removes duplicate cards by source:id. The same ID in two sources identifies two separate listings.
  • Changing the seed, mode, limit, or cross-sell setting clears the loaded recommendations and resets horizontal scroll.
  • A failed request keeps the loaded cards. When the end marker enters the scroll area again, the renderer can retry. There is no specific error or empty-state message. An empty result can leave the title visible without cards.
const banner: UpsellVehiclesBlockBanner = { typename: BannerTypename.UpsellVehiclesBlock, id: 'b_123', title: 'Weitere Fahrzeuge für dich', titleTag: 'h2', titleAlign: 'left', cssId: null, cssClasses: null, imageObjectFit: 'contain', foreignEntityId: '2527110', recommendationMode: UpsellRecommendationMode.Inventory, recommendationLimit: 10, crossSellEnabled: true };

Vehicle upsells always use a vehicle seed and the local recommendation engine. They do not accept manual product lists or nested funnel banners. Their recommendationMode is a source enum. Shopify upsells use a boolean recommendation switch.

Related vehicle documentation: inventory archive, deal archive, inventory detail, and deal detail.

Configure this banner. Vehicle recommendation API. How recommendations work.

Last updated on