Skip to Content
ReferenceRecommendationsShopify product selection and recommendations

Shopify product selection and recommendations

Audience: CMS editors and developers.

This contract applies to the product upsell banner.

Manual and recommendation modes

Manual mode

With recommendationMode=false, the backend loads the configured product IDs from local synchronization data. It restores their configured order. The displayed list excludes products that the backend cannot resolve.

recommendationLimit does not truncate a manually selected list. The selected products determine its length.

Recommendation mode

With recommendationMode=true:

  1. The first valid configured product identifier becomes the seed.
  2. The backend requests Shopify Storefront product recommendations using the RELATED intent.
  3. The backend normalizes the returned IDs, removes duplicates, and applies recommendationLimit.
  4. The backend resolves these IDs against locally synchronized products. It keeps the returned order.

The recommendation list replaces the manual list. Additional selected products do not act as seeds or fallback products. The backend does not automatically add the seed before the results.

The limit specifies a maximum count. Shopify can return fewer recommendations. Missing local synchronization records can decrease the displayed count. The backend does not load more pages to fill empty positions. A larger limit does not cause additional recommendation requests.

crossSellEnabled does not change the Shopify intent to COMPLEMENTARY, enable another product source, or turn recommendations on. Use recommendationMode to enable Shopify recommendations.

Difference from vehicle recommendations

Shopify supplies product relevance and order. The banner does not use vehicle attribute weights, similarity scores, session-search bonuses, vehicle-class priority, or cross-class fallback. It does not call the vehicle recommendation API. It does not expose score, similarity, or matchedSignals.

For those behaviors, see UpsellVehiclesBlockBanner.

Loading, caching, and failures

The backend resolves products and recommendations when it prepares the banner. The frontend receives complete product data. It does not load more recommendations during scrolling or show loading placeholders.

The Shopify recommendation query follows the banner fetch policy:

Banner fetch policyShopify query policy
cache-firstCached
cache-onlyCache only
network-onlyNetwork only
no-cacheNo cache
Other/defaultCached

The implementation does not define a fixed cache lifetime for this banner. Page delivery and revalidation affect when visitors see updated data. See Caching.

If recommendation mode has no seed, the recommendation list stays empty. The backend logs recommendation lookup errors and local product-loading errors. These errors produce an empty product list. The implementation does not use manual selections as fallback. Funnel content can keep the banner visible. Banner activation and draft-preview rules apply.

For setup, see configure product upsells.

Last updated on