Product Recommendations·shopify

Frequently Bought Together Product Bundles

Help shoppers discover complementary products with this Shopify Frequently Bought Together section. It displays curated product bundles alongside the product being viewed, making it easy for customers to explore related items and add a complete set to their cart. Merchants can select products in the theme editor or use product metafields to manage recommendations, creating a flexible cross-selling experience without a separate app. Ideal for Shopify stores looking to improve product discovery, promote bundles, support upselling and cross-selling, and encourage larger orders with relevant product recommendations. Customize the section to fit your storefront and showcase accessories, matching products, or other frequently purchased items.

languageliquid
filefrequently-bought-sets.liquid
lines411
#shopify#productrecommendations#frequentlyboughttogether#productbundles#cross-selling#upselling#metafields#liquid

source

The full code

frequently-bought-sets.liquid
locked
1{%- liquid
2assign selected_products = block.settings.products
3
4if selected_products == blank and product.metafields.custom.frequently_bought_sets != blank
5 assign selected_products = product.metafields.custom.frequently_bought_sets.value
6endif
7-%}
8
9{%- if selected_products != blank -%}
10{% style %}
11 .fbs {
12 margin-top: 2rem;
13 }
14
15 .fbs__header {
16 margin-bottom: 1rem;
17 }
18
19 .fbs__title {
20 margin: 0;

Unlock the full code

Enter your name & email to reveal 391 more lines

● liquid20/411 lines

Want sections like these built for you?

Custom Shopify themes, sections, and apps tailored to your brand.

hire me→