All guides › 2-pack bundle without an app
A "buy a 2-pack and save" option on Shopify without a bundle app
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.
You want to sell a 2-pack without installing another app, and without a bundle pop-up over the cart. Fair enough. For two of the same item, you don't need a bundle product at all. A 2-pack is just quantity 2 at a lower price per item. Shopify can already discount that natively, and the product page only needs to offer it clearly.
Three ways to sell a 2-pack
| A "2-pack" variant | Shopify Bundles (multipack) | Quantity 2 + automatic discount (this guide) | |
|---|---|---|---|
| Extra app | No | Shopify's free Bundles app | No |
| Stock | Separate count. A single and a 2-pack can oversell each other | Taken from the single product's stock | Shared: it's the same variant |
| Price | Whatever you set | Whatever you set | A % off, applied in the cart |
| In the cart | "T-shirt – 2-pack" | One bundle line | "T-shirt × 2" with the discount shown |
| Works with other variants (size, colour) | Doubles the variant count | Yes | Yes, any variant |
| Main catch | Stock | One more app, if you want none at all | Shoppers who buy 3 also get the % off |
If you want a fixed bundle price like "2 for £20" on items with different prices, use Shopify Bundles. If a 2-pack means "two of this, a bit cheaper", the third column is the simplest and has nothing to keep in sync.
How the virtual 2-pack works
- A native automatic discount gives 10% off this product when the cart has at least 2 of it.
- On the product page, a small picker replaces Dawn's quantity box with two choices: Single, £12.00 and 2-pack, save 10%:
£24.00£21.60. - Choosing the 2-pack sets the form's quantity to 2. The normal Add to cart button does the rest.
The 2-pack prices are worked out from the selected variant, and the picker keeps up when the shopper changes size or colour. If you track stock, don't allow overselling and fewer than 2 are left, the 2-pack is greyed out with "Not enough stock for a 2-pack". The picker drops back to Single so the shopper can still buy one.
The picker block
{%- comment -%}
"Virtual 2-pack": a Single / 2-pack choice that adds 2 of the SAME variant, so stock is shared automatically.
The saving itself comes from a native automatic discount (Amount off products, this product,
minimum quantity of items = pack_size, pack_percent off). Keep the two numbers below identical to it.
Add as a "Custom Liquid" block above Buy buttons (Dawn 16) and remove the Quantity selector block.
{%- endcomment -%}
{%- liquid
assign pack_size = 2
assign pack_percent = 10
assign v = product.selected_or_first_available_variant
assign pack_full = v.price | times: pack_size
assign pack_saving = pack_full | times: pack_percent | divided_by: 100.0 | round
assign pack_price = pack_full | minus: pack_saving
assign pack_ok = v.available
if v.inventory_management == 'shopify' and v.inventory_policy == 'deny' and v.inventory_quantity < pack_size
assign pack_ok = false
endif
-%}
<pack-picker class="pack-picker" data-section="{{ section.id }}">
<fieldset class="pack-picker__options" id="PackPicker-{{ section.id }}">
<legend class="form__label">Choose a pack</legend>
<label class="pack-picker__option">
<input type="radio" name="pack-{{ section.id }}" value="1" checked>
<span class="pack-picker__name">Single</span>
<span class="pack-picker__price">{{ v.price | money }}</span>
</label>
<label class="pack-picker__option">
<input type="radio" name="pack-{{ section.id }}" value="{{ pack_size }}" {% unless pack_ok %}disabled{% endunless %}>
<span class="pack-picker__name">{{ pack_size }}-pack, save {{ pack_percent }}%</span>
{%- if pack_ok -%}
<span class="pack-picker__price"><s>{{ pack_full | money }}</s> {{ pack_price | money }}</span>
{%- else -%}
<span class="pack-picker__price">Not enough stock for a {{ pack_size }}-pack</span>
{%- endif -%}
</label>
</fieldset>
<input type="hidden" name="quantity" value="1" form="product-form-{{ section.id }}" class="pack-picker__qty">
</pack-picker>
<style>
.pack-picker__options { border: 0; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.8rem; }
.pack-picker__option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 0.1rem solid rgba(var(--color-foreground), 0.25); border-radius: 0.6rem; cursor: pointer; }
.pack-picker__option:has(input:checked) { border-color: rgb(var(--color-foreground)); box-shadow: 0 0 0 0.1rem rgb(var(--color-foreground)); }
.pack-picker__option:has(input:disabled) { opacity: 0.55; cursor: not-allowed; }
.pack-picker__price { margin-left: auto; text-align: right; }
</style>
<script>
if (!customElements.get('pack-picker')) {
customElements.define('pack-picker', class extends HTMLElement {
connectedCallback() {
const id = this.dataset.section;
/* If the Quantity selector block is still there, drive it instead of adding a second quantity field. */
this.dawnQty = document.getElementById('Quantity-' + id);
this.qty = this.querySelector('.pack-picker__qty');
if (this.dawnQty) this.qty.remove();
this.addEventListener('change', (e) => { if (e.target.type === 'radio') this.apply(); });
this.apply();
const listen = () => {
if (typeof subscribe !== 'function' || typeof PUB_SUB_EVENTS === 'undefined') return;
this.unsub = subscribe(PUB_SUB_EVENTS.variantChange, (e) => {
if (e.data.sectionId !== id || !e.data.html) return;
/* Copy prices and stock state for the new variant from Dawn's re-rendered section, keep the choice. */
const fresh = e.data.html.getElementById('PackPicker-' + id);
if (!fresh) return;
const chosen = this.selected();
const box = this.querySelector('.pack-picker__options');
box.innerHTML = fresh.innerHTML;
const again = box.querySelector('input[value="' + chosen + '"]:not(:disabled)') || box.querySelector('input[value="1"]');
again.checked = true;
this.apply();
});
};
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', listen, { once: true });
else listen();
}
disconnectedCallback() {
if (this.unsub) this.unsub();
}
selected() {
const r = this.querySelector('input[type="radio"]:checked');
return r ? r.value : '1';
}
apply() {
const n = this.selected();
if (this.dawnQty) {
this.dawnQty.value = n;
this.dawnQty.dispatchEvent(new Event('change', { bubbles: true }));
} else this.qty.value = n;
}
});
}
</script>
Install it
- Create the automatic discount. In Discounts → Create discount → Amount off products, choose Automatic discount, title it (for example "2-pack saving"), choose Percentage 10, Applies to: Specific products and pick the product. Under Minimum purchase requirements choose Minimum quantity of items: 2. Save.
- Open the product template. Go to Online Store → Themes → Customize → Products → Default product. If only some products get a 2-pack, create a separate template for them and assign it on those products.
- Remove the Quantity selector block. In Product information, hide or remove Dawn's Quantity selector block. The picker sets the quantity instead. (If you keep it, the picker drives it, so the two can't disagree.)
- Add a Custom Liquid block above Buy buttons. Add a Custom Liquid block, drag it directly above Buy buttons, and paste the picker code.
- Match the numbers and test. Set
pack_sizeandpack_percentto the discount's minimum quantity and percentage. Save, choose 2-pack, add to cart, and check the cart shows the same price as the picker.
"No cart overlay"
If the pop-up you want to avoid is Dawn's own cart drawer sliding over the page after Add to cart, that's a theme setting, not a bundle feature. In the theme editor, open Theme settings → Cart → Cart type and choose Page (go to the cart) or Popup notification (a small confirmation at the top). Nothing in this guide adds an overlay of its own.
Honest limits
- 3 or more also get the discount. "Minimum quantity 2" means 2 or more. For most shops that's fine (a 3-pack buyer is a good customer). If it isn't, you need Shopify Bundles or a Functions-based discount app.
- Two different variants count too. One small and one large of the same product make 2 items, so they get the 10%. If the discount must be same-variant only, that also needs a Functions app.
- Keep the numbers identical.
pack_percentin the block and the discount's percentage are typed in two places. Checkout charges what the discount says. - Collection pages show the single price only.
No product for this one
There's no No-App Sections product for bundles or packs, and you don't need one: the picker and Shopify's own discount above are the whole thing. The other guides cover more product page and cart fixes that don't need an app.
FAQ
Can I offer a 3-pack as well?
Not with one discount, because one automatic discount has one minimum and one percentage. You could add a 3-pack option and a second discount with a minimum of 3, but check which one wins when both apply in Combinations. Shopify Bundles is simpler for several pack sizes.
Does the 2-pack show as one line in the cart?
It shows as the product with quantity 2 and the discount underneath. If you need a single "2-pack" product in orders and reports, use a variant or Shopify Bundles.
Will inventory go down by 2?
Yes. It's the same variant at quantity 2, so stock is reduced by 2 like any other order of two.
Is Shopify Bundles really free?
Shopify Bundles is a free app made by Shopify. It's still an app, which is why this guide shows the option that needs none. Check its listing for which themes and plans it supports.
What if I don't want the % to show in the cart?
The discount title is what the cart shows, so name it what you like ("2-pack price"). The saving itself is always shown, because Shopify shows discounts in the cart.