Product Recommendations

AI-powered cross-selling with related products, complementary items, and recently viewed.

šŸ“ sections/product-recommendations.liquid

Quick Setup

  1. On product template, add section → Product recommendations
  2. Choose intent: Related or Complementary
  3. Enable Recently viewed tab if desired

Section Settings

Content

SettingTypeDefaultDescription
HeadingtextYou may also likeSection heading. Examples: 'Complete the Look', 'Pairs Well With', 'Customers Also Bought'.
Productsrange4Number of products to display. Range: 2–12.

Animation

SettingTypeDefaultDescription
Image effectradioNoneAnimation effect for product images. Options: None, Reveal, Zoom.

Recommendations

SettingTypeDefaultDescription
IntentselectRelatedType of recommendations to show. 'Related' shows similar products. 'Complementary' shows products often bought together.
Tab labeltextRecommendedLabel for the recommendations tab.
Use Shopify recommendationscheckboxtrueUse Shopify's AI-powered product recommendations. When disabled, uses the fallback collection.
Fallback collectioncollection-Collection to show if Shopify recommendations are disabled or unavailable.

šŸ’” Related vs Complementary:
• Related — Shows similar products (same category, similar attributes)
• Complementary — Shows products frequently purchased together (best for accessories, add-ons)

Curated Override

For complete control over recommendations, you can use metafields:

SettingTypeDefaultDescription
Use curated metafieldcheckboxfalseOverride Shopify recommendations with a curated list from a product metafield.
Metafield keytexttheme.complete_the_lookThe metafield namespace and key containing curated product references.

āš ļø Metafield Setup: To use curated recommendations, create a product metafield with type "Product list" using namespace theme and key complete_the_look. Then add products to each product's metafield in the Shopify admin.

Recently Viewed

SettingTypeDefaultDescription
Show tabcheckboxtrueDisplay a 'Recently Viewed' tab showing products the customer has previously looked at.
Tab labeltextRecently viewedLabel for the recently viewed tab.
Show pricecheckboxtrueDisplay prices on recently viewed products.
Show compare pricecheckboxtrueShow the compare-at (original) price if applicable.

Layout

SettingTypeDefaultDescription
Mobileselect2 columnsMobile layout. '2 columns' shows two products per row. '1 + peek' shows one product with the next peeking.
Card image positionselectTop centerHow product images are cropped in cards.
Card StyleselectDefaultVisual style for product cards. Options: Default, Minimal (clean borders), Premium (soft shadows).
Desktop columnsrange4Number of visible products on desktop. Range: 2–6.
WidthselectInheritSection width. Options: Inherit (page width), Narrow, Wide.

Spacing

SettingTypeDefaultDescription
Include top paddingcheckboxfalseAdd padding above the section.
Desktop top/bottomrange0pxMargins on desktop.
Mobile top/bottomrange0pxMargins on mobile.

How It Works

Recommendation Priority

The section follows this priority order:

  1. Curated metafield — If enabled and products are set, uses these first
  2. Shopify recommendations — AI-powered suggestions based on purchase history and browsing behavior
  3. Fallback collection — Used when Shopify recommendations are unavailable or disabled

Recently Viewed

The "Recently Viewed" tab works client-side:

  • Products are stored in the browser's localStorage
  • Automatically tracks products the customer views
  • Shows up to the configured number of products (excludes current product)
  • Persists across sessions until browser data is cleared

Card Styles

Three visual styles are available:

Card Style Options

Default
Standard theme styling
Minimal
Clean borders, subtle hover effect, modern look

Best Practices

Recommendation Strategy

  1. Use "Related" for discovery — Helps customers find similar products
  2. Use "Complementary" for upsells — Shows accessories, add-ons, or matching items
  3. Curate for hero products — Manually curate recommendations for best sellers

Content Tips

  1. 4 products is optimal — Shows a full row without scrolling on desktop
  2. Use descriptive headings — "Complete the Look" or "Pair It With" performs better than generic "You May Also Like"
  3. Enable Recently Viewed — Helps returning customers find products they were considering

Mobile Considerations

  1. "2 columns" is cleaner — Shows products without horizontal scrolling
  2. "1 + peek" encourages scrolling — Better for visual products like fashion

Troubleshooting

Recommendations not showing

  • Ensure Use Shopify recommendations is enabled
  • New stores may need purchase history for recommendations to work
  • Set a Fallback collection for stores with limited data
  • Check that the product page actually has the section added

Recently viewed is empty

  • The customer needs to view other products first
  • Clear browser data resets the list
  • Works across sessions but not across different browsers/devices

Curated products not appearing

  • Verify the metafield exists on the product
  • Check the Metafield key matches exactly (case-sensitive)
  • Ensure the metafield type is "Product list"
  • Products in the metafield must be published

Wrong products showing

  • Switch from "Related" to "Complementary" or vice versa
  • Use a curated metafield for precise control
  • Set a specific fallback collection