Milestone documentation

    Loading suggestions…

    ↑↓ to move ↵ to open esc to close

    Documentation

    Cart recommendations

    Products to add from the cart page, chosen automatically from the first product in the cart, from a manual list, or both. Products already in the cart are left out, and the cards share the theme’s global product card settings.

    Merchant-addable
    Yes, in supported locations
    Settings
    16
    Block types
    —
    File
    sections/cart-recommendations.liquid

    Available in: Cart templates.

    Included in supplied templates: Cart

    When to use it

    Below the cart on the cart template. It is available only on the cart template.

    Setting it up

    1. Write the Heading and Body text under Content.
    2. Choose Recommendation source: Automatic with manual fallback (default), Automatic followed by manual, or Manual. Automatic recommendations come from Shopify and use the first product in the cart.
    3. Select Manual products. They fill in when automatic recommendations are unavailable and are the only products shown when the cart is empty. Set Products to show from 2 to 4; Manual shows every selected product.
    4. Turn on Show when cart is empty to keep the section on an empty cart. It uses the manual products and stays hidden when none are selected.
    5. Under Product cards, choose Card style (Quiet or Framed) and whether to Show product numbers (off by default). Turn Show quick add on (default) to add products from the cards, then set Button visibility (Always visible by default, or On card hover) and Show quick view (on by default).
    6. Under Appearance, choose Heading size: Small (default), Medium, or Large. It uses the shared editorial heading scale on desktop and 20, 24, or 28px on phones. Then set Color scheme, and set padding under Spacing.

    Where the content comes from

    Shopify product data and Shopify product recommendations own the products, media, prices, variants, and availability. Section settings own the heading and its size, body text, source, manual products, product count, card style, product numbers, and purchase actions. Global Product cards settings own image ratio, vendor, badges, ratings, and variant pickers. No blocks or metafields are required.

    Notes and cautions

    • One to three products always share one row on tablets and desktops, centered when fewer products show than Products to show. Four products become a horizontal row with navigation arrows. Phones always use a horizontal swipe row.
    • Variant pickers on these cards are controlled by Product cards → Show in cart recommendations in Theme settings. It is off by default.

    Product cards and purchase actions

    Cart recommendations shows products a customer can add without leaving the cart page. Products already in the cart never appear, so the row can show fewer products than Products to show. When it does, the remaining cards stay in one row and center rather than leaving an empty column.

    Choose where products come from

    Recommendation sourceWhat customers see
    Automatic with manual fallbackShopify’s recommendations for the first product in the cart. Manual products appear only when Shopify returns none. This is the default.
    Automatic followed by manualShopify’s recommendations first, then manual products to fill any remaining places.
    ManualEvery selected manual product, in the order you selected them.

    When the cart changes, the section refreshes its recommendations for the new first product. Without JavaScript, the manual products appear instead.

    Product cards

    Card style matches Featured collection. With Quiet, the image, product information, and purchase action sit directly on the section background. With Framed, a border and background enclose each card. Show product numbers adds a small 01, 02, 03 index to each image and is off by default.

    Image ratio, image fit, vendor, ratings, badges, and product information alignment come from the global Product cards settings. Variant pickers appear on these cards only when Product cards → Show in cart recommendations is turned on in Theme settings. It is off by default.

    Under Product cards, use Heading size to choose Small, Medium, or Large once for both desktop and mobile. Small is the default. On phones below 750px, titles scale to 80% of the desktop size automatically; separate desktop/mobile controls and saved pixel-size sliders are no longer needed. This setting affects product names only; prices, body text, and purchase actions retain their own scales.

    SizeDesktopMobile
    Small (default)20px16px
    Medium24px19.2px
    Large28px22.4px

    Product titles have no permanent underline on phones. Existing theme setup and the connected demo use Small, matching the ZIP’s starting values.

    Understand quick add and quick view

    Show quick add places the same compact action button used by Featured collection beneath each price. Hovering or focusing it reveals its label; on phones, a caption beneath the button names the action. What the action does depends on the product:

    ProductAction
    Available, with only the default variant and no required selling planAdds directly to the cart and refreshes the cart page.
    Available, with options or a required selling plan; quick view enabledChoose options opens a compact popup with variant selectors, quantity, and Add to cart.
    Available, with options or a required selling plan; quick view disabledLinks to the product page to choose options.
    UnavailableShows a sold-out action that cannot purchase the product.

    Button visibility offers Always visible (the default) and On card hover. Hover mode also shows the action when keyboard focus enters the card, and actions remain visible on touch screens. Show quick view appears only while quick add is on. Configure the popup itself in the global Quick view theme settings.

    Layout

    On tablets and desktops, one to three products share a single row. Four products become a horizontal row with previous and next arrows. Phones always show a horizontal swipe row. The introduction heading uses the full available width on phones, and the carousel arrow buttons are hidden there. Swipe the row or tab through its product links to browse.

    Cart recommendations design

    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

    HeadingRich text (inline)
    ID
    heading
    Default
    Complete your <em>ritual.</em>
    Body textRich text
    ID
    description
    Default
    <p>Thoughtful additions selected to layer naturally into your routine.</p>
    Show when cart is emptyCheckbox

    Uses manual products because automatic recommendations require a product in the cart. The section stays hidden when no manual products are selected.

    ID
    show_when_cart_empty
    Default
    Off
    Recommendation sourceDropdown

    Automatic recommendations use the first product in the cart. Manual products provide the fallback for automatic recommendations.

    ID
    recommendation_source
    Default
    Automatic with manual fallback
    • Automatic with manual fallbackautomatic
    • Automatic followed by manualcombined
    • Manualmanual
    Manual productsProduct list

    Choose at least two products. Recommendations exclude products already in the cart.

    ID
    manual_products
    Limit
    8
    Products to showSlider
    ID
    products_to_show
    Default
    4
    Range
    2 to 4, in steps of 1
    Shown when
    recommendation_source is not 'manual'

    Product cards

    Heading sizeDropdown
    ID
    product_heading_size
    Default
    Small
    • Smallsmall
    • Mediummedium
    • Largelarge
    Card styleDropdown
    ID
    card_style
    Default
    Quiet
    • Quietquiet
    • Framedframed
    Show product numbersCheckbox
    ID
    show_product_index
    Default
    Off
    Show quick addCheckbox
    ID
    show_quick_add
    Default
    On
    Button visibilityDropdown

    On card hover also shows buttons on keyboard focus. Buttons remain visible on touch screens.

    ID
    quick_add_visibility
    Default
    Always visible
    Shown when
    show_quick_add
    • On card hoverhover
    • Always visiblealways
    Show quick viewCheckbox

    Opens a popup with variant options and add to cart for products with multiple variants.

    ID
    show_quick_view
    Default
    On
    Shown when
    show_quick_add

    Appearance

    Heading sizeDropdown
    ID
    heading_size
    Default
    Small
    • Smallsmall
    • Mediummedium
    • Largelarge
    Color schemeColor scheme
    ID
    color_scheme
    Default
    scheme-6

    Spacing

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