Shopify Related Products Not Showing? Setup and Fixes
How to add related and complementary products on Shopify with the free Search & Discovery app, and what to check when they don't show.
On this page
- What Is the Difference Between Related and Complementary Products on Shopify?
- How Does Shopify Decide Which Related Products to Show?
- How Do You Add Related Products on Shopify?
- How Do You Add Complementary Products ("Pair It With")?
- Why Are My Shopify Related Products Not Showing?
- How Do You Check Recommendations Directly, Without the Theme?
- How Do You Add Related Products With Code?
- When Is Search & Discovery Not Enough?
- What Should You Do First?
Shopify related products usually fail to show for one of five reasons. The theme has no recommendations section on the product template. The products being recommended are out of stock, priced at $0, unpublished, or already in the shopper's cart. A complementary block has no products assigned in Search & Discovery. The theme is incompatible. Or the store has too little order history for automatic picks. Adding them takes two steps: add the section or block in the theme editor, then set picks in Shopify's free Search & Discovery app.
Written by Vignesh Prajapati, Founder & AI/ML Engineer at UpsellQ. See about for background.
Key Takeaways
- Shopify has two recommendation types: related (similar products, generated automatically) and complementary (products bought alongside, which you set by hand) (Shopify Help Center).
- Recommendations never show products that are inactive, unlisted, priced at $0.00, gift cards, unpublished from the Online Store, or already in the visitor's cart (Shopify Help Center).
- Complementary products need inventory above 0, so a sold-out pick disappears silently.
- You can set up to 10 related and 10 complementary products per product, and the API returns at most 10 (Shopify Dev Docs).
- Orders imported from another platform are not used for automatic recommendations, so migrated stores often see thin results at first (Shopify Dev Docs).
What Is the Difference Between Related and Complementary Products on Shopify?
Related products are items similar to the one being viewed, offered as alternatives. Complementary products are items often bought in addition to it, offered as add-ons. Shopify's own wording: related products are "similar to a selected product", complementary products are "often bought in addition to a selected product" (Shopify Help Center).
The two behave differently, and most "not showing" problems come from mixing them up.
| Related products | Complementary products | |
|---|---|---|
| Shopper intent | "Show me alternatives" | "What goes with this?" |
| Typical heading | "You may also like" | "Pair it with" |
| Generated automatically? | Yes, for every product | No, you add them yourself |
| Manual picks allowed | Up to 10 | Up to 10 |
| Sold-out products | Can show if "continue selling when out of stock" is on | Hidden unless inventory is above 0 |
| Where it lives in the theme | A section (for example "Related products") | A block inside the product information section |
Sources: Shopify Help Center, Shopify Dev Docs.
How Does Shopify Decide Which Related Products to Show?
Shopify generates related products from purchase history and product descriptions. If neither gives enough signal, it falls back to products in the same collections, skipping the "all" and "frontpage" collections. It ranks up to ten products per product by relevance (Shopify Dev Docs).
Two details matter for troubleshooting:
- Description matching works on English storefronts only. On other languages, the algorithm leans on order history and collections (Shopify Help Center).
- Imported orders don't count. If you migrated from WooCommerce, Magento or another Shopify store, that order history is not used (Shopify Dev Docs). A new or migrated store often gets weak or collection-only picks until it builds its own sales.
You can't edit the automatic list. You can preview it in Search & Discovery, add your own picks on top, or hide automatic picks for a single product.
How Do You Add Related Products on Shopify?
Related products need a recommendations section on the product template. Most current Shopify themes, including Dawn, already ship one.
- In the Shopify admin, go to Online Store → Themes and click Customize.
- Open the Products template from the page selector at the top.
- Click Add section and pick Related products (the name can differ by theme, for example "Product recommendations").
- Set the heading and the number of products to show. Shopify's guidance is four related products for a standard row (Shopify Dev Docs).
- Click Save, then open a real product page on the live store, not only the editor preview.
To pick related products yourself:
- Install the free Shopify Search & Discovery app if it isn't already installed.
- Open the app and go to Recommendations.
- Search for a product and add up to 10 related products.
- Choose whether the storefront shows only your picks, or your picks ahead of automatic ones.
- Save, then check the product page.
For larger catalogs, the same picks can be set in bulk with the Bulk Editor or through the standard metafields Related products, Related products settings (only manual or ahead) and Complementary products, which tools such as Shopify Flow can write to (Shopify Help Center).
How Do You Add Complementary Products ("Pair It With")?
Complementary products only show where you've assigned them, so setup has two halves.
In Search & Discovery:
- Go to Recommendations and select the main product.
- Add up to 10 complementary products.
- Save.
In the theme editor:
- Go to Online Store → Themes → Customize and open the Products template.
- Inside the product information section, click Add block and choose Complementary products.
- Set the heading, maximum products (1–10), products per page (1–4), and whether to allow quick add.
- Save.
Only one complementary products block is allowed per product page, and it only exists in compatible themes (Shopify Help Center). If you can't find the block, your theme doesn't support it. The code option further down works in any theme.
Why Are My Shopify Related Products Not Showing?
Work through this table from top to bottom. Each row is a documented cause, not a guess.
| Symptom | Likely cause | Fix |
|---|---|---|
| No recommendations area on the product page at all | The product template has no recommendations section or block | Add the Related products section or Complementary products block in the theme editor |
| "Complementary products" missing from Add block | The theme doesn't support complementary products | Switch to a compatible theme, or add a custom section (see the code below) |
| The complementary block is added but shows nothing | No complementary picks are assigned for that product | Add picks in Search & Discovery → Recommendations |
| A specific pick never appears | It's out of stock, priced at $0.00, a gift card, inactive, unlisted, or not published to the Online Store | Restock it, set a price, set it to Active, and publish it to the Online Store channel |
| Products disappear once the shopper adds them to the cart | Shopify excludes products already in the visitor's cart, by design | No fix needed. Assign more than one pick so the block isn't left empty |
| Related products look random or come only from one collection | Little order history (new store, or imported orders), so Shopify is using the collection fallback | Add manual related picks and set them to show ahead of automatic ones |
| The editor preview and the live store show different products | Automatic recommendations change frequently | Judge on the live storefront, not the app preview |
| The section shows briefly, then disappears | The theme loads recommendations with JavaScript and hides the section when the response is empty | Check the picks against the rules above; check the browser console for a 404 or 422 error |
| Recommendations stopped after a theme update or switch | The section wasn't carried over to the new theme | Re-add the section or block to the new theme's product template |
Sources for display rules: Shopify Help Center, Shopify Dev Docs.
One documented inconsistency is worth knowing. The Help Center says related products can show when sold out if "continue selling when out of stock" is on. The developer docs say out-of-stock products are excluded from the Product Recommendations API. If a sold-out related product doesn't show on your theme, treat that as expected rather than a bug.
Merchants hit these issues often. Shopify Community threads cover the missing Add section option (thread), recommendations vanishing for items in the cart (thread), and blocks that render with no products (thread). The table above maps each one to its documented cause.
How Do You Check Recommendations Directly, Without the Theme?
Ask the store for the raw list. If the API returns products but the page shows nothing, the problem is in the theme. If the API returns nothing, the problem is the products or the picks.
Open this URL in a browser, replacing the store domain and product ID (the ID is in the product's admin URL):
https://your-store.myshopify.com/recommendations/products.json?product_id=1234567890123&limit=4&intent=related
Change intent=related to intent=complementary to check complementary picks. The JSON endpoint returns up to 10 products, and its errors tell you what's wrong (Shopify Dev Docs):
| Response | Meaning |
|---|---|
products list with items | Recommendations exist, so look at the theme section |
Empty products list | No eligible products, so check stock, price, status and picks |
| 404 "No product with id … is published in the online store" | The main product isn't published to the Online Store |
| 422 "The intent parameter must be one of related, complementary" | Typo in the intent value |
How Do You Add Related Products With Code?
If your theme has no recommendations section, you can add one. This is a trimmed version of Shopify's own example (Shopify Dev Docs). Create sections/product-recommendations.liquid:
<div
class="product-recommendations"
data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}&product_id={{ product.id }}&limit=4&intent=related"
>
{%- if recommendations.performed? and recommendations.products_count > 0 -%}
{%- if recommendations.intent == 'complementary' -%}
<h2>Pair it with</h2>
{%- else -%}
<h2>You may also like</h2>
{%- endif -%}
<ul>
{%- for product in recommendations.products -%}
<li>
<a href="{{ product.url }}">
{{ product.featured_image | image_url: width: 400 | image_tag: loading: 'lazy' }}
<p>{{ product.title }}</p>
<p>{{ product.price | money }}</p>
</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{% javascript %}
const section = document.querySelector('.product-recommendations');
const observer = new IntersectionObserver((entries) => {
if (!entries[0].isIntersecting) return;
observer.unobserve(section);
fetch(section.dataset.url)
.then((response) => response.text())
.then((text) => {
const html = document.createElement('div');
html.innerHTML = text;
const result = html.querySelector('.product-recommendations');
if (result && result.innerHTML.trim().length) {
section.innerHTML = result.innerHTML;
}
})
.catch((error) => console.error(error));
}, { rootMargin: '0px 0px 200px 0px' });
observer.observe(section);
{% endjavascript %}
{% schema %}
{
"name": "Product recommendations",
"settings": [],
"presets": [{ "name": "Product recommendations" }]
}
{% endschema %}
Then add the section to the product template from the theme editor. Three points from Shopify's docs explain why the code is shaped this way:
- The
recommendationsobject is empty on the first page render. The JavaScript fetches the section again from the recommendations endpoint, and that response is filled in. - Product URLs from this endpoint carry tracking parameters, so sales show up in Analytics → Product recommendation conversion over time (Shopify Dev Docs).
- For complementary products, change
intent=relatedtointent=complementary. Shopify suggests showing 2–3 complementary products by default.
Test on a duplicate theme first, and keep the section's output small, because every extra product card adds images to the page.
When Is Search & Discovery Not Enough?
Search & Discovery is free and made by Shopify, but it has limits that show up as a store grows:
- Complementary picks are manual. With hundreds of products, assigning 10 picks each by hand isn't practical.
- It only covers the product page. It doesn't place offers in the cart, at checkout, or after purchase.
- There are no per-widget sales figures beyond Shopify's own recommendation report.
- Merchants rate it low. The App Store listing shows 2.6 stars from 511 ratings as of 20 October 2026 (Shopify App Store).
If you're hitting those limits, a recommendations app picks complementary products automatically and adds cart and post-purchase placements. UpsellQ is our free app for this. It shows AI-picked recommendations on the product page, in the cart, at checkout and after purchase, and reports click-through, conversion and revenue for each widget. Our AI product recommendations guide explains how these engines choose products, and the Shopify upsell app comparison compares the main options.
What Should You Do First?
- Open a product page on the live store and confirm a recommendations section or block exists.
- Open the
recommendations/products.jsonURL for that product to see whether Shopify returns anything. - If nothing comes back, check that the picks are active, published, in stock and priced above $0.
- If the store is new or migrated, add manual related picks and set them to show ahead of automatic ones.
- Add complementary picks for your best sellers first, since those pages get the most views.
- If you use an upsell app and its offer does not appear, work through Shopify upsell not showing? Causes and fixes.
Related products and complementary products are one piece of raising order value. For the bigger picture, read how to increase average order value on Shopify and our cross-sell strategies guide.
This guide was drafted with AI assistance and checked against Shopify's Help Center and developer documentation, linked above.
Vignesh Prajapati
Founder of Pingax and creator of UpsellQ. Building AI-powered tools that help Shopify merchants sell smarter.
Vignesh Prajapati on LinkedInMore in AI Product Recommendations
See all in AI Product Recommendations →Similar posts
Read next
Frequently Bought Together on Shopify: Free, App or Code
Read this post

