Bundles are one of the easiest ways to raise order value on a Shopify store. Most stores add them with a bundle app, and most of those apps cost a monthly fee, add their own JavaScript to every page, and render a widget that never quite matches the theme.
For many D2C brands that’s more than they need. If what you want is “buy any 3, save 15%” or “add the matching cleanser for ₹299”, you can build it into your theme with Liquid, a little JavaScript and Shopify’s built-in automatic discounts. There’s no app to pay for, and nothing extra loads on pages that don’t show a bundle.
This guide covers three no-app approaches we use on client stores, with code, and when an app is still the right answer.
Which kind of bundle do you need?
Start with what the customer is actually doing, because it decides the build.
| Bundle type | Example | Best no-app approach |
|---|---|---|
| Fixed kit | “Skincare starter kit”: the same 3 products every time | A bundle product |
| Build your own | “Pick any 3 snacks, save 15%” | Bundle builder section + automatic discount |
| Paired add-on | “Add the matching belt” on a product page | Paired products from a metafield |
| Volume discount | “Buy 2, get 10% off” on one product | Automatic discount only, no code |
Volume discounts need no code at all: create an automatic discount in Discounts, choose Amount off products, pick the product, and set a minimum quantity. The other three need some theme work.
1. The fixed kit: a bundle product
The simplest option is to create the kit as its own product: “Morning Routine Kit”, with its own photos, description and price.
Why it works: it shows up in collections and search like any other product, it has its own product page that can rank in Google, and you can photograph the kit as a set.
The catch is inventory. Shopify sees the kit as a separate product, so selling a kit doesn’t reduce the stock of the three products inside it. For small catalogues where you pack kits in advance, that’s fine: you stock kits as kits. If the kit is assembled from the same stock you sell individually, you need component inventory, and that’s where Shopify’s own free Bundles app comes in (see “When you do need an app” below).
2. Build your own bundle with Liquid
This is the most popular request we get: a section where the customer ticks any 3 products from a collection and adds them all to the cart at a bundle price.
It has two parts:
- A theme section that lists products from a collection and adds the chosen ones to the cart in a single request.
- An automatic discount that applies the bundle price when the cart holds enough items from that collection.
The discount (no code)
- Create a collection for the bundle, for example “Build your box”, and add the eligible products.
- Go to Discounts → Create discount → Amount off products, and choose Automatic discount.
- Set the value (for example 15%), and under Applies to choose the “Build your box” collection.
- Under Minimum purchase requirements, choose Minimum quantity of items and enter 3.
- Check the Combinations settings so it behaves as you expect alongside your other discounts.
The discount now applies whenever the cart has 3 or more items from the collection, whether they came through the bundle section or not. For most brands that’s exactly what you want.
The section
Create sections/bundle-builder.liquid in your theme:
{%- assign bundle_collection = section.settings.collection -%}
<div class="bundle-builder page-width" data-min="{{ section.settings.min_items }}">
<h2>{{ section.settings.heading }}</h2>
<p>{{ section.settings.subheading }}</p>
<form class="bundle-builder__form">
<div class="bundle-builder__grid">
{%- for product in bundle_collection.products limit: 12 -%}
{%- assign variant = product.selected_or_first_available_variant -%}
<label class="bundle-builder__item">
<input
type="checkbox"
name="bundle-item"
value="{{ variant.id }}"
{% unless variant.available %}disabled{% endunless %}
>
{{ product.featured_image
| image_url: width: 300
| image_tag: widths: '150, 300', sizes: '150px', loading: 'lazy' }}
<span class="bundle-builder__title">{{ product.title }}</span>
<span class="bundle-builder__price">{{ variant.price | money }}</span>
</label>
{%- endfor -%}
</div>
<p class="bundle-builder__status" aria-live="polite"></p>
<button type="submit" class="button" disabled>{{ section.settings.button_label }}</button>
</form>
</div>
<script>
document.querySelectorAll('.bundle-builder').forEach((root) => {
const form = root.querySelector('form');
const button = form.querySelector('button');
const status = form.querySelector('.bundle-builder__status');
const min = Number(root.dataset.min);
const picked = () => [...form.querySelectorAll('input[name="bundle-item"]:checked')];
form.addEventListener('change', () => {
const count = picked().length;
button.disabled = count < min;
status.textContent = count < min
? `Pick ${min - count} more to unlock the bundle price`
: 'Bundle price unlocked';
});
form.addEventListener('submit', async (event) => {
event.preventDefault();
const bundleId = Date.now().toString(36);
const items = picked().map((input) => ({
id: Number(input.value),
quantity: 1,
properties: { _bundle: bundleId }
}));
button.disabled = true;
const response = await fetch(window.Shopify.routes.root + 'cart/add.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ items })
});
if (response.ok) {
window.location.href = window.Shopify.routes.root + 'cart';
} else {
const error = await response.json();
status.textContent = error.description || 'Something went wrong. Please try again.';
button.disabled = false;
}
});
});
</script>
{% schema %}
{
"name": "Bundle builder",
"settings": [
{ "type": "collection", "id": "collection", "label": "Bundle collection" },
{ "type": "text", "id": "heading", "label": "Heading", "default": "Build your bundle" },
{ "type": "text", "id": "subheading", "label": "Subheading", "default": "Pick any 3 and save 15%" },
{ "type": "range", "id": "min_items", "label": "Minimum items", "min": 2, "max": 6, "step": 1, "default": 3 },
{ "type": "text", "id": "button_label", "label": "Button label", "default": "Add bundle to cart" }
],
"presets": [{ "name": "Bundle builder" }]
}
{% endschema %}
Add the section to any page in the theme editor, pick the collection, and set the minimum to match your discount.
A few details that matter:
- One request, not three. Shopify’s Ajax Cart API accepts several variants in one
cart/add.jscall through theitemsarray, so the whole bundle lands in the cart together. _bundleis a hidden line item property. Properties whose name starts with an underscore are hidden from customers at checkout. The bundle ID lets you see in the order which items were bought together, without cluttering the customer’s view.- Images load lazily and at the right size. The section only costs page speed where it’s used. (More on that in our speed optimisation checklist.)
Hide the property in your cart
Most modern themes, including Dawn, already skip properties starting with _ in the cart. If yours shows “_bundle: lq8x2” under each item, find the loop over item.properties in your cart template and add a check:
{%- for property in item.properties -%}
{%- assign first_character = property.first | slice: 0 -%}
{%- if property.last != blank and first_character != '_' -%}
<p>{{ property.first }}: {{ property.last }}</p>
{%- endif -%}
{%- endfor -%}
Check the cart drawer too: it often has its own copy of this loop.
3. Paired add-ons from a metafield
“Complete the look” and “goes well with” add-ons work well on product pages, and you can control them per product without an app.
- In Settings → Custom data → Products, add a metafield definition called “Pairs with” (
custom.pairs_with) of type Product, list of products. - On each product, choose the 1–3 products that pair with it.
- Add a block to your product template that reads the metafield:
{%- assign pairs = product.metafields.custom.pairs_with.value -%}
{%- if pairs != blank -%}
<div class="pairs-with">
<h3>Pairs well with</h3>
{%- for pair in pairs -%}
{%- assign pair_variant = pair.selected_or_first_available_variant -%}
{%- if pair_variant.available -%}
<label>
<input type="checkbox" name="pair-item" value="{{ pair_variant.id }}">
{{ pair.title }} · {{ pair_variant.price | money }}
</label>
{%- endif -%}
{%- endfor -%}
</div>
{%- endif -%}
Then extend the product form’s add-to-cart: when the customer adds the main product, include any ticked pairs in the same items array, using the same cart/add.js call as the bundle builder. Add an automatic discount on the paired product if you want a “together” price.
When you do need an app
The no-app approaches cover most D2C bundles, but they have real limits. You should use an app when:
- You need component inventory. A kit sold as one product should reduce stock of each item inside it. Shopify’s own Bundles app is free and handles fixed bundles this way.
- The bundle must be one line at one price in the cart and at checkout, instead of three discounted lines. That needs Shopify’s Cart Transform API, which runs as a Shopify Function inside an app. Two plan limits apply: custom apps that use Functions only work on Shopify Plus stores, and some Cart Transform operations (changing a line’s price or title) are limited to Plus regardless of the app. On non-Plus stores, a public app from the Shopify App Store is the route.
- Pricing rules get complex: tiered bundle prices, different discounts per bundle size, or bundles that mix subscription and one-time products.
If none of those apply, the theme approach is usually cheaper, faster and better looking.
Before you launch
- Test on mobile: tick products, add to cart, and check the discount appears in the cart and at checkout.
- Try adding an out-of-stock product. It should be disabled, not fail silently.
- Check that other automatic discounts and discount codes combine the way you expect.
- Place a test order and confirm the
_bundleproperty shows on the order in the admin. - Measure product page speed before and after. A theme section should add almost nothing.
We build bundle sections, paired add-ons and other custom Shopify features for D2C brands, usually without adding an app. If you’d like a bundle that fits your theme and doesn’t slow your store, tell us what you’re selling.