Shopify sections
Shopify complementary products, and what to show when a product has none
Shopify complementary products are the items you pair with a product in Shopify's free Search & Discovery app. Themes show them on the product page as a "pairs well with" row. The Section Store section Complementary Products displays those pairs, Shopify's automatic related products or a list of up to 8 hand-picked products, and has a fallback for products without pairs. Shoppers add the items one at a time; there is no bundle with a total. You buy it once as a single section or get it with Enterprise.
- Placement: a block in the main product section
- Default source: Complementary (Search & Discovery); default fallback: Show related products
Last checked:

When to use it
Worth adding when pairs are patchy, the wrong tool for bundles and tiny catalogues
Use it when
- Your theme leaves a gap on products without pairsIf the theme's row stays empty or disappears on products with no complementary items, this section reacts through "When there are none". It shows related products by default, can show your hand-picked list instead, or removes itself with Hide the section.
- Pairs already maintained in Search & DiscoveryThe default source reads the complementary products you already set, so nothing is entered twice. Quick add puts products without options in the cart with one click and opens a small size and colour picker for the rest, with sold-out options crossed out.
- Items in the cart should not be suggested againWith Hide products already in the cart on, the section reads the storefront cart and drops anything the shopper has added. Hide sold-out products is on by default too, so items that cannot be bought stay out of the row.
Skip it when
- A fixed bundle with one totalEach suggestion goes to the cart separately. There is no combined price and no add-all button. A frequently bought together bundle is built for that job.
- Offers that belong inside the cartThe section takes its product from the product page and is proposed as a block in the main product section. For suggestions next to the cart contents, use a cart upsell section.
- A catalogue of only a few productsAutomatic related picks and the single hand-picked list end up showing the same items on every page. Set pairs per product in Search & Discovery with Hide the section as the fallback, or leave the row out.
In detail
Source, fallback and two filters decide what appears under the product
"Products to show" offers three sources. Complementary (Search & Discovery), the default, uses the pairs set per product. Related (automatic) needs no setup because Shopify picks the items. Hand-picked products uses one list of up to 8 products that belongs to the section setup, so every product page carrying that setup shows the same list.
"When there are none" is a conditional setting and decides what an empty result turns into: Shopify's related products (the default), your hand-picked list, or no row at all. Choose Hide the section if a headline with nothing under it would look broken on your template.
Before the row renders, sold-out items and products already in the cart are filtered out. "Number of products" sets the length of the row from 2 to 10, default 4.
Layout sets the shape. Cards is a row with Columns (Desktop) from 2 to 5. List gives compact rows meant for the spot right under the add-to-cart button. Carousel turns the cards into a swipeable strip. Because the section uses container queries, it sizes itself to the column it sits in, which matters inside a narrow product info column. Compact list on phones is on by default.
Quick add defaults to a button that appears on hover; Plus icon keeps it visible at all times, Off removes it. After adding to cart opens the theme's cart drawer if the theme has one. Without a drawer, switch it to Show a confirmation or Go to the cart page.
The app block hands the section the current product as product_handle and product_id. Outside a product page the section has no product to pair with.
- Headline default "Pairs well with", translated automatically into the shopper's language
- Sale badge text accepts {percent}, replaced with the real discount from the compare-at price
- Honours prefers-reduced-motion; product images load lazily
Two ways
Fetching recommendations is short code, the fallback and cart check are the work
Shopify serves complementary and related products through a recommendations route any theme can call. The time goes into what surrounds it: asking again when the answer is empty, comparing against the cart and adding variants straight from a card.
Way 1
Theme code around the product recommendations route
A generic outline that has not been run in a theme. The fallback, the cart comparison and the quick add picker are script you write and maintain yourself.
- Build a section file that loops over the recommendations object and renders your theme's product card for each available product.
- From the product template, call routes.product_recommendations_url with product_id, limit and intent=complementary, requesting that section through the Section Rendering API.
- Insert the returned HTML into a container next to the product form.
- When the response holds no products, call the route again with intent=related, or hide the container.
- Fetch the cart with the Ajax Cart API and remove cards whose product is already in it.
- Add a quick add button with a variant selector for products that have options.
Choose this if: Someone on the project maintains the theme code and wants the row to reuse the theme's own product cards. If the theme's existing complementary block already covers every product you sell, keep that block.
Way 2
Complementary Products placed through the Section Store app block
No theme files change; the generated code is kept in an app-owned metafield. The app is free to install, and this section is a one-time purchase or part of the [Enterprise plan](/apps/section-store).
- In the builder, pick a source under Products to show and a fallback under When there are none.
- Set layout and quick add behaviour, then save the setup.
- Send it to the product template with Install in theme, which opens the theme editor there.
- In the app block's picker, confirm Complementary Products and adjust padding or the hide on mobile switch if needed.
- Save the theme to publish the row.
Choose this if: Your store runs an Online Store 2.0 theme and you want the fallback, the cart filter and quick add without owning the script. Up to 20 setups of the section can exist side by side, for example one per product template.
Builder settings
Every builder setting of Complementary Products
Start in the Products group with Products to show and When there are none, because together they decide whether a product without pairs gets related items, your list or no row. Then pick the Layout that fits the spot: List under the add-to-cart button, Cards or Carousel in a wider area. All of this is edited in the Section Store builder; the theme editor only offers the app block's section picker, padding, max width and hide switches.
Products5
- Products to show
- Choice: Complementary (Search & Discovery), Related (automatic), Hand-picked products
- DefaultComplementary (Search & Discovery)
- When there are noneConditional
- Choice: Show related products, Show hand-picked products, Hide the section
- DefaultShow related products
- Number of products
- Slider, 2–10
- Default4
- Hide sold-out products
- On / off
- DefaultOn
- Hide products already in the cart
- On / off
- DefaultOn
Content3
- Eyebrow
- Text
- DefaultEmpty
- HeadlineThe default headline is translated automatically into the shopper's language.
- Text
- DefaultPairs well with
- Subheadline
- Text
- DefaultEmpty
Layout4
- LayoutCards: a row of product cards. List: compact rows, ideal right under the add-to-cart button. Carousel: swipeable cards.
- Choice: Cards, List, Carousel
- DefaultCards
- Columns (Desktop)Conditional
- Slider, 2–5
- Default4
- Compact list on phonesConditional
- On / off
- DefaultOn
- Max Width
- Slider, 320–1800 px
- Default1200 px
Cards9
- Card styleConditionalStandard: details under the image. Minimal: centred, quieter text.
- Choice: Standard, Minimal
- DefaultStandard
- Image ratioConditional
- Choice: Square, Portrait, Tall
- DefaultPortrait
- Show second image on hoverConditional
- On / off
- DefaultOn
- Quick addOne click adds products without options. Products with options open a small picker with sizes and colours; sold-out ones are crossed out.
- Choice: Off, Button (appears on hover), Plus icon (always visible)
- DefaultButton (appears on hover)
- After adding to cartConditional
- Choice: Open the cart drawer (if the theme has one), Show a confirmation, Go to the cart page
- DefaultOpen the cart drawer (if the theme has one)
- Show vendor
- On / off
- DefaultOff
- Show compare-at price
- On / off
- DefaultOn
- Show sale badgeConditional
- On / off
- DefaultOn
- Sale badge textConditional{percent} is replaced with the real discount from the compare-at price, e.g. -{percent}%. The default is translated automatically.
- Text
- DefaultSale
Design7
- Text Color
- Colour
- Default#1c1b19
- Background Color
- Colour
- Defaulttransparent
- Image background
- Colour
- Default#f5f3ef
- Sale color
- Colour
- Default#b4532a
- Button Color
- Colour
- Default#1c1b19
- Button Text Color
- Colour
- Default#ffffff
- Corner Radius
- Slider, 0–24 px
- Default8 px
Spacing1
- Section Spacing
- Spacing per device
- DefaultTop padding 24 / 24 / 20 px
Repeatable items1
- Hand-picked products
- List of items, up to 8
- Default0 sample items
30 settings in 7 groups. These are settings in the Section Store builder, not theme editor settings: read from the app's section configuration, as of 2 Dec 2026. "Conditional" settings appear only once a related setting turns them on.
FAQ
Questions merchants ask about complementary and related products
Per product, in Shopify's free Search & Discovery app under Product recommendations. You choose there which items go with each product. Products you leave without pairs show whatever "When there are none" is set to.
Not quite. "You may also like" rows usually show related products, which Shopify chooses automatically. Complementary products are pairs you choose yourself. For a "You may also like" row, set Products to show to Related (automatic) and replace the default headline "Pairs well with".
Not from one setup: its hand-picked list holds up to 8 products and shows the same items wherever that setup appears. Per-product picks belong in Search & Discovery. You can also create several setups of the section, up to 20, each with its own list, and place them on different product templates.
The builder preview uses sample products. On the storefront, the app block passes the current product's handle and id, and the real complementary or related items load there.
The default output is 42.2 KB, of which 27.6 KB is JavaScript and 12.5 KB is CSS. Images load lazily. The section also sends requests to the storefront cart to read, add or change items.
Complementary Products is in Section Store.
Set it up in the app builder and place it through the Section Store app block. No theme code.
Sources
Sources
- Section Store app: builder configuration and generated code of Complementary Products · as of 2026-12-02
- Section Store on the Shopify App Store · as of 2026-12-02
- Shopify developer documentation: Sections