Milestone documentation

    Loading suggestions…

    ↑↓ to move ↵ to open esc to close

    Documentation

    Related products

    A scrolling row of Shopify's related product recommendations for the product being viewed.

    Merchant-addable
    Yes, in supported locations
    Settings
    9
    Block types
    —
    File
    sections/related-products.liquid

    Available in: Product templates.

    Included in supplied templates: Product, Product (set)

    When to use it

    Below the fold on product pages, once the primary decision has been made. The section can only be added to product templates, because Shopify needs a product to find related ones for.

    Setting it up

    1. Add the section to a product template. It is not available on other templates.
    2. Under Content, set the Eyebrow, Heading, and Body text shown above the row. Leave any of them blank to hide it.
    3. Number of products sets how many recommendations the row requests, from 2 to 10. It defaults to 7: four cards fill a desktop row and the rest are a scroll away. Shopify returns fewer when your store has fewer related products.
    4. Under Layout, choose Heading alignment, Heading size, and the Color scheme. Heading sizes step down automatically on phones. Set spacing under Section padding.
    5. Cards follow your global Product cards theme settings. To show variant controls on these cards, turn on Show in related products under Variant visibility.

    Where the content comes from

    Shopify supplies related recommendations and each product’s media, title, price, and availability. Section settings own the introduction, requested count, alignment, heading size, color scheme, and spacing.

    Notes and cautions

    • Shopify generates related recommendations and lets merchants customize them through Search and Discovery. The number and order returned depend on Shopify and your product data; the theme does not guarantee a particular fallback assortment.
    • When Shopify returns no related products, the section hides itself from customers. In the theme editor, a dotted note appears in its place so you know why it is empty.
    • The row loads as shoppers scroll toward it, so it does not slow down the top of the page. It needs JavaScript, so it does not appear when JavaScript is turned off.
    • To pair products by hand instead, use Routine builder, which reads the complementary products you set in the free Search and Discovery app. Show one cross-sell, not both.

    Set up related recommendations

    Add Related products to a product template. Shopify needs the current product to supply related recommendations, so the section is unavailable on other template types.

    Write Eyebrow, Heading, and Body text; blank fields are omitted. Choose Number of products (2–10, default 7), Heading alignment, Heading size, Color scheme, and top/bottom padding. Shared Product cards theme settings control card media, vendor, badges, ratings, and picker style. Show in related products under Product cards enables variant controls for this placement.

    Shopify generates recommendations and supports customization through Search and Discovery. The theme requests the configured count but Shopify can return fewer or none. With no results, the section hides from customers and displays an editor setup note. The row loads as it approaches the viewport and needs JavaScript. Use Routine builder with manual Step blocks for a fixed selection, or its product source mode for complementary products.

    Shopify recommendation setup

    100%

    Use the zoom controls, then scroll to inspect the image. Press Escape to close.

    Section settings

    Every setting on the section itself, in the order it appears in the theme editor. Group headings match the editor's own grouping.

    Content

    EyebrowText
    ID
    eyebrow
    Default
    Ritual companions
    HeadingRich text (inline)
    ID
    heading
    Default
    Related products
    Body textRich text (inline)
    ID
    description
    Default
    Curated essentials to elevate your daily ritual.
    Number of productsSlider
    ID
    products_to_show
    Default
    7
    Range
    2 to 10, in steps of 1

    Layout

    Heading alignmentDropdown
    ID
    heading_alignment
    Default
    Left
    • Leftleft
    • Centercenter
    • Rightright
    Heading sizeDropdown
    ID
    heading_size
    Default
    Medium
    • Smallsmall
    • Mediummedium
    • Largelarge
    Color schemeColor scheme
    ID
    color_scheme
    Default
    scheme-6

    Section padding

    Top paddingSlider
    ID
    padding_top
    Default
    48
    Range
    0px to 100px, in steps of 4px
    Bottom paddingSlider
    ID
    padding_bottom
    Default
    72
    Range
    0px to 100px, in steps of 4px