> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digifist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Product recommendations

> Display Shopify's AI-powered product recommendations to encourage cross-selling, upselling, and complementary purchases.

The Product recommendations section displays Shopify's AI-powered product recommendations based on the current product or cart contents. It shows personalized product suggestions to encourage cross-selling and upselling, with optional manual product fallback.

Shopify's recommendation engine analyzes purchase patterns, product relationships, and customer behavior to suggest the most relevant products, helping increase average order value and improve the shopping experience.

<img src="https://mintcdn.com/digifist/6sBzyrh-xDwK2Yej/images/theme/sahara/sections/product-recommendations/product-recommendations-overview.png?fit=max&auto=format&n=6sBzyrh-xDwK2Yej&q=85&s=89cb6d3c7769e698ab1e206bea6a7c2e" alt="Product recommendations section overview" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/product-recommendations-overview.png" />

## What this section controls

This section controls AI-powered product recommendation displays with the following capabilities:

* Shopify AI-powered recommendations (automatic)
* Manual product fallback when recommendations unavailable
* Configurable product limit (4-12 products)
* Two layout options for visual variety
* Optional section-level button
* Stock status visibility control
* Responsive grid display

## How Product recommendations works

The Product recommendations section leverages two data sources:

**Primary (Automatic):**

* Shopify's AI recommendation engine suggests products based on:
  * Current product relationships
  * Cart contents
  * Purchase patterns across your store
  * Customer behavior and browsing history

**Fallback (Manual):**

* If AI recommendations are unavailable, displays manually selected products
* Useful for new stores or products with limited data
* Provides consistent display until recommendations improve

## Getting started

<Steps>
  <Step title="Open Theme Customizer">
    From Shopify admin, access the Theme Customizer.
  </Step>

  <Step title="Add Product recommendations section">
    Add the section to a product page template or cart page.
  </Step>

  <Step title="Configure heading">
    Set descriptive heading like "You may also like" or "Complete the look".
  </Step>

  <Step title="Add fallback products">
    Select manual products to display when AI recommendations are unavailable.
  </Step>

  <Step title="Set display options">
    Configure maximum products, layout, and stock visibility.
  </Step>
</Steps>

<img src="https://mintcdn.com/digifist/6sBzyrh-xDwK2Yej/images/theme/sahara/sections/product-recommendations/product-recommendations-location.png?fit=max&auto=format&n=6sBzyrh-xDwK2Yej&q=85&s=5d712cff7bcf2060f83711c00d6193dd" alt="Product recommendations section in Theme Customizer" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/product-recommendations-location.png" />

## Section settings

<Tabs>
  <Tab title="Layout">
    ### Layout

    Controls the visual style and arrangement of the product grid.

    <AccordionGroup>
      <Accordion title="Layout 1" icon="grid">
        Standard grid layout with consistent product card styling.

        **Best for:**

        * Clean, minimal designs
        * Focus on product imagery
        * Standard product pages
      </Accordion>

      <Accordion title="Layout 2" icon="grip">
        Alternative layout with different spacing and card treatment (default).

        **Best for:**

        * Visual variety
        * Differentiation from other product sections
        * Enhanced visual hierarchy
      </Accordion>
    </AccordionGroup>

    <Note>
      Layout choice should match your overall theme aesthetic and other product section layouts.
    </Note>

    <img src="https://mintcdn.com/digifist/6sBzyrh-xDwK2Yej/images/theme/sahara/sections/product-recommendations/layout-options.png?fit=max&auto=format&n=6sBzyrh-xDwK2Yej&q=85&s=88b0bb14761693e22e59fcd6f9ab7a29" alt="Layout options" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/layout-options.png" />
  </Tab>

  <Tab title="Content">
    ### Heading

    Main title text for the section.

    * Inline rich text supported (bold, italic, links)
    * **Default:** "Heading for Product Recommendations"

    <AccordionGroup>
      <Accordion title="Effective heading examples" icon="heading">
        **For product pages:**

        * "You may also like"
        * "Complete the look"
        * "Customers also bought"
        * "Pairs well with"

        **For cart page:**

        * "Don't forget these"
        * "Add to your order"
        * "Recommended for you"
        * "Frequently bought together"
      </Accordion>
    </AccordionGroup>

    <Tip>
      Use action-oriented, contextual headings that encourage exploration without being pushy.
    </Tip>

    ### Heading size

    Controls the size of section heading.

    **Options:** XS, S, M, L, XL\
    **Default:** XL

    <img src="https://mintcdn.com/digifist/rh9tYj6OckGz7Zmm/images/theme/sahara/sections/product-recommendations/heading-size.png?fit=max&auto=format&n=rh9tYj6OckGz7Zmm&q=85&s=b710536ddf4cd3ca664aaa151c204c18" alt="Heading configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/heading-size.png" />
  </Tab>

  <Tab title="Button">
    ### Button text

    Label for optional section-level button.

    * Plain text
    * **Default:** "View all"
    * Leave empty to hide button

    ### Button URL

    Destination link for section button.

    * Shopify URL selector
    * Useful for linking to collection or shop page

    ### Button style

    Visual style of the section button.

    <AccordionGroup>
      <Accordion title="Filled" icon="square">
        Solid background with contrasting text (default).

        **Best for:** Primary calls-to-action, prominent visibility
      </Accordion>

      <Accordion title="Outlined" icon="border-outer">
        Border-only style with transparent background.

        **Best for:** Secondary actions, subtle CTAs
      </Accordion>

      <Accordion title="Text link" icon="link">
        Minimal styling as underlined text.

        **Best for:** Tertiary actions, non-intrusive links
      </Accordion>
    </AccordionGroup>

    <Note>
      Section button appears below product grid and provides an escape route to browse more products beyond recommendations.
    </Note>

    <img src="https://mintcdn.com/digifist/rh9tYj6OckGz7Zmm/images/theme/sahara/sections/product-recommendations/button-style.png?fit=max&auto=format&n=rh9tYj6OckGz7Zmm&q=85&s=56dd71ac8d88eaf8b1535d1d88a70e64" alt="Button configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/button-style.png" />
  </Tab>

  <Tab title="Products">
    ### Products (Manual fallback)

    Select up to 12 products to display when AI recommendations are unavailable.

    * Product list selector
    * **Limit:** 12 products
    * Acts as fallback only

    <AccordionGroup>
      <Accordion title="When manual products display" icon="hand">
        Manual products appear in these situations:

        **New stores:**

        * Insufficient purchase data
        * Limited product relationships
        * Recently launched products

        **Preview mode:**

        * Theme Customizer
        * Development environments
        * Testing scenarios

        **No recommendations:**

        * Shopify API temporarily unavailable
        * Product has no related items
        * Recommendation algorithm returns empty set
      </Accordion>
    </AccordionGroup>

    <Tip>
      Select best-selling, complementary, or popular products as fallbacks to ensure quality suggestions even when AI recommendations are unavailable.
    </Tip>

    ### Max products

    Maximum number of products to display (AI or manual).

    **Range:** 4 – 12 products\
    **Default:** 8

    <AccordionGroup>
      <Accordion title="Product count recommendations" icon="calculator">
        **4-6 products:**

        * Minimal, focused suggestions
        * Mobile-first designs
        * Cart page recommendations

        **7-8 products (recommended):**

        * Balanced presentation
        * Standard product pages
        * Good variety without overwhelming

        **9-12 products:**

        * Maximum exposure
        * Category landing pages
        * Desktop-optimized layouts
      </Accordion>
    </AccordionGroup>

    <Warning>
      Shopify's AI may return fewer products than max\_products setting if insufficient recommendations exist.
    </Warning>

    ### Show unavailable products

    Display products that are out of stock.

    **Options:** True / False\
    **Default:** False

    <AccordionGroup>
      <Accordion title="Stock visibility strategy" icon="boxes-stacked">
        **Hide unavailable (False - default):**

        * Only show in-stock products
        * Reduces customer frustration
        * Focuses on actionable recommendations
        * **Best for:** Most stores

        **Show unavailable (True):**

        * Display all recommendations regardless of stock
        * Allows "Notify when available" interactions
        * Shows full product range
        * **Best for:** Limited inventory or pre-order products
      </Accordion>
    </AccordionGroup>

    <img src="https://mintcdn.com/digifist/rh9tYj6OckGz7Zmm/images/theme/sahara/sections/product-recommendations/products-settings.png?fit=max&auto=format&n=rh9tYj6OckGz7Zmm&q=85&s=28b8219fad740d5f3b317fd2e1beaa82" alt="Product configuration" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/products-settings.png" />
  </Tab>

  <Tab title="Styling">
    ### Section width

    Controls horizontal width of the section.

    **Options:**

    * **Page** - Standard container width (default)
    * **Fluid** - Wider, more spacious layout

    <Note>
      Fluid width works well for product grids, providing more breathing room for product images.
    </Note>

    ### Color scheme

    Select color scheme for section background and text.

    ### Spacing

    Control vertical spacing around the section:

    * **Spacing top** - Margin above (None, S, M, L, XL)
    * **Spacing bottom** - Margin below (None, S, M, L, XL)

    Both default to M.

    ### Section border

    Add decorative borders: None (default), Top, Bottom, Both

    <img src="https://mintcdn.com/digifist/rh9tYj6OckGz7Zmm/images/theme/sahara/sections/product-recommendations/section-border.png?fit=max&auto=format&n=rh9tYj6OckGz7Zmm&q=85&s=5640acdc4178ee0c5be634ea8b801f38" alt="Styling options" width="3280" height="2186" data-path="images/theme/sahara/sections/product-recommendations/section-border.png" />
  </Tab>
</Tabs>

## Best practices

<CardGroup cols={2}>
  <Card title="Strategic placement" icon="location-dot">
    Add to product pages (below description) and cart page for maximum cross-sell opportunity.
  </Card>

  <Card title="Contextual headings" icon="message">
    Use descriptive, action-oriented headings: "Complete the look", "You may also like", "Customers also bought".
  </Card>

  <Card title="Optimal product count" icon="list-ol">
    Set max products to 6-8 for balanced variety without overwhelming customers.
  </Card>

  <Card title="Quality fallbacks" icon="shield-check">
    Select best-selling or complementary products as manual fallbacks for new stores or products.
  </Card>

  <Card title="Hide out-of-stock" icon="eye-slash">
    Keep "Show unavailable products" disabled to avoid customer frustration with unavailable items.
  </Card>

  <Card title="Section button" icon="arrow-up-right-from-square">
    Add section button linking to collection or shop for customers who want more options.
  </Card>

  <Card title="Fluid width" icon="arrows-left-right">
    Consider fluid section width for product grids to maximize space and visual impact.
  </Card>

  <Card title="Monitor performance" icon="chart-line">
    Track click-through and conversion rates from recommendations to optimize placement and heading.
  </Card>
</CardGroup>

## Common use cases

<AccordionGroup>
  <Accordion title="Product page cross-sell" icon="tags">
    Place below product description. Heading: "You may also like". Max products: 8. Hide unavailable products. Manual fallbacks: Best-sellers from same collection. Button: "Shop all products".
  </Accordion>

  <Accordion title="Cart page upsell" icon="cart-plus">
    Add to cart page template. Heading: "Complete your order". Max products: 6. Show unavailable for pre-orders. Manual fallbacks: Popular accessories. Button: "Continue shopping".
  </Accordion>

  <Accordion title="Complementary products" icon="puzzle-piece">
    Product page for apparel. Heading: "Complete the look". Max products: 6. Hide unavailable. Manual fallbacks: Matching accessories. Filled button style. Layout 2 for differentiation.
  </Accordion>

  <Accordion title="Category suggestions" icon="layer-group">
    Product page in specific category. Heading: "More from this collection". Max products: 12. Fluid width. Manual fallbacks: Same-category products. Text link button: "View full collection".
  </Accordion>

  <Accordion title="Frequently bought together" icon="users">
    Below add-to-cart button. Heading: "Customers also bought". Max products: 4. Hide unavailable. Manual fallbacks: Bundle-worthy items. Layout 1. Outlined button: "Shop more".
  </Accordion>
</AccordionGroup>

## Related sections

<CardGroup cols={2}>
  <Card title="Featured products" icon="star" href="/themes/sahara/sections/featured-products">
    Manually curated product showcases
  </Card>

  <Card title="Carousel" icon="images" href="/themes/sahara/sections/carousel">
    Sliding card displays for varied content
  </Card>
</CardGroup>
