All guides › Complementary products not showing

Dawn complementary products not showing: why, and a no-app fallback

Disclosure: I build No-App Sections; this guide was written with AI assistance. The code on this page was written for this guide. It passes Shopify's Theme Check inside Dawn 16.0.0 and automated tests in headless Chrome, run against Dawn's own cart and variant events with mocked store data. It hasn't been run on a live store yet, so try it on a duplicate theme first.

Dawn's Complementary products block is a common source of "I set it up and nothing shows". The block itself is fine. It shows whatever Shopify's recommendations API returns, and when that is an empty list, the block renders nothing at all, with no message. This page goes through why the list comes back empty, shows how to check what Shopify returns, and gives you a fallback you control completely.

First, where the products come from

Dawn doesn't pick complementary products. You set them, per product, in Shopify's free Search & Discovery app (Apps → Search & Discovery → Product recommendations). Shopify does not create complementary products automatically. If nobody has set any for a product, the block stays empty on that product.

Search & Discovery is an app, but it's Shopify's own and it doesn't add code to your theme. If you'd rather not use it at all, skip to the fallback.

The checklist

Work through these in order. Numbers 1, 4 and 5 are the easiest to miss.

  1. Complementary products are set for this product. Open Search & Discovery → Product recommendations, search for the product you're viewing, and check its complementary list isn't empty.
  2. The block is in the template that product uses. If the product uses a different template (see Theme template on the product admin page), the block you added to Default product isn't on it.
  3. You saved in Search & Discovery. Unsaved changes there don't reach the storefront.
  4. The recommended products are sellable. Shopify leaves out products that are sold out, are gift cards, have a price of 0, aren't Active, or aren't available on the Online Store sales channel.
  5. They aren't already in your cart. Shopify skips complementary products that are already in the cart. Testing with a full cart is a classic way to see nothing.
  6. The block's count. Dawn shows up to the block's Product count setting, a few per page. Shopify returns at most 10.
  7. Reload without cache (Ctrl+Shift+R / Cmd+Shift+R) after saving, so you're not looking at an old copy of the page.

Check what Shopify actually returns

This takes the theme out of the question. Open a product page on your storefront, open the browser console (F12, then Console), and paste this, with your product's ID. The ID is the number at the end of the product's admin URL:

// Paste into the browser console on your storefront (not the admin).
// Replace 1234567890 with the product ID from the product's admin URL.
fetch('/recommendations/products.json?product_id=1234567890&intent=complementary&limit=10')
  .then((r) => r.json())
  .then((data) => {
    if (!data.products || data.products.length === 0) {
      console.log('Shopify returned no complementary products for this product.');
    } else {
      console.table(data.products.map((p) => ({ title: p.title, available: p.available })));
    }
  });
  • "no complementary products": the problem is in Search & Discovery or the checklist above (product status, stock, channel, cart), not in Dawn.
  • A table of products, but the block is still empty: the problem is in the theme. Check the block is in the template the product uses, and that a theme customisation hasn't removed Dawn's product-recommendations code.

The fallback: a "Pairs well with" list from a metafield

If you'd rather choose pairings directly on the product, with no app and no API, a product metafield and a Custom Liquid block do the job. It mimics Shopify's main rules: it skips sold-out products, products already in the cart, and the product itself, and shows up to 3.

1. Create the metafield

Settings → Custom data → Products → Add definition: name Pairs well with, namespace and key custom.pairs_with, type Product, and choose List of products. Save, then pick products on each product's admin page.

2. Add the block

In the theme editor, open Products → Default product, add a Custom Liquid block to Product information (under Buy buttons works well), and paste:

{%- comment -%}
  "Pairs well with" list from a product metafield (Dawn "Custom Liquid" block in Product information).
  Needs a product metafield definition: custom.pairs_with, type "Product" with "List of products".
  Skips products that are sold out or already in the cart, like Shopify's complementary products do.
{%- endcomment -%}
{%- liquid
  assign picks = product.metafields.custom.pairs_with.value
  assign in_cart_ids = cart.items | map: 'product_id'
  assign shown = 0
-%}
{%- capture cards -%}
  {%- for pick in picks -%}
    {%- if shown >= 3 -%}{%- break -%}{%- endif -%}
    {%- if pick.available == false or in_cart_ids contains pick.id or pick.id == product.id -%}{%- continue -%}{%- endif -%}
    {%- assign pick_variant = pick.selected_or_first_available_variant -%}
    {%- assign pick_alt = pick.featured_image.alt | default: pick.title -%}
    <li class="pairs__item">
      <a class="pairs__link" href="{{ pick.url }}">
        {%- if pick.featured_image -%}
          {{ pick.featured_image | image_url: width: 120 | image_tag: loading: 'lazy', width: 60, height: 60, class: 'pairs__img', alt: pick_alt }}
        {%- endif -%}
        <span>{{ pick.title | escape }}<br><small>{{ pick_variant.price | money }}</small></span>
      </a>
      <form method="post" action="{{ routes.cart_add_url }}">
        <input type="hidden" name="id" value="{{ pick_variant.id }}">
        <input type="hidden" name="quantity" value="1">
        <button type="submit" class="button button--tertiary">Add</button>
      </form>
    </li>
    {%- assign shown = shown | plus: 1 -%}
  {%- endfor -%}
{%- endcapture -%}
{%- if shown > 0 -%}
  <div class="pairs">
    <p class="pairs__title">Pairs well with</p>
    <ul class="pairs__list" role="list">{{ cards }}</ul>
  </div>
  <style>
    .pairs { margin: 0 0 1.5rem; }
    .pairs__title { font-weight: 600; margin: 0 0 0.8rem; }
    .pairs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
    .pairs__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .pairs__link { display: flex; align-items: center; gap: 1rem; color: inherit; text-decoration: none; }
    .pairs__img { width: 60px; height: 60px; object-fit: cover; }
  </style>
{%- endif -%}

The "Add" buttons are plain Shopify cart forms, so they work in every theme: the product is added and the shopper goes to the cart. Because this list is rendered by Liquid when the page loads, it's in the HTML immediately. That's different from Dawn's block, which loads its products after the page.

Which should you use?

Dawn block + Search & DiscoveryMetafield fallback
Where you choose productsIn the Search & Discovery appOn each product's admin page
LoadsAfter the page, from the APIWith the page
Skips sold-out and in-cartYes (Shopify's rules)Yes (Liquid)
Bulk editingIn the appBulk editor or CSV for metafields

Want a polished row you set up in the theme editor?

The Upsell block shows up to 4 products you pick in the theme editor, each with an image and an add-to-cart button. Sold-out products are labelled rather than hidden. It doesn't use the recommendations API, so it shows exactly what you picked. It also doesn't check the cart, so unlike the fallback above it will still show a product the shopper already added. £12 one-off, for one store, tested on Dawn and Horizon. Other Online Store 2.0 themes may need small style tweaks.

Buy the upsell block, £12 Try the live demo

FAQ

Does Shopify fill in complementary products automatically?

No. Related products (Dawn's "You may also like" section) are automatic. Complementary products are only the ones you set in Search & Discovery.

Why do complementary products show on one product but not another?

They're set per product. Check the second product has its own list, and that its picks are in stock, Active and not in your cart.

Is there a limit?

Shopify returns at most 10 complementary products for a product. Dawn then shows up to the block's "Product count" setting.

Can I use both the Dawn block and the fallback?

Yes, but on the same product they'd often show the same items. Use the fallback for products you don't manage in Search & Discovery, or pick one.

Why does the fallback show at most 3?

It fits next to the buy buttons without pushing the description far down. Change shown >= 3 to another number if you want more.