Skip to content

Build Your Own Bundle Section for Shopify

Shopify section where shoppers pick a set number of products from a collection, see them in a bundle tray with a live total, and add the whole bundle to the cart at once.

Also known as: shopify bundle builder section, build your own bundle shopify, shopify mix and match bundle, shopify bundle without app, add multiple products to cart shopify

Preview with sample data

Open in new tab

Liquid code

A build-your-own-bundle section for Shopify: shoppers choose a set number of products from one collection, watch them fill a bundle tray with a live total, and add the whole bundle to the cart in one step. Use it on the home page, a landing page or a gift page to sell sets without a bundle app. Copy section.liquid into your theme's sections folder and add it from the theme editor as "WDS Bundle builder".

How it works

Each product card has an Add to bundle toggle button and, for products with several variants, a variant select. Once the bundle is full, the other buttons read Bundle full until a product is removed. Sold-out products, and products sold only with a subscription, show a disabled Sold out button.

The tray shows the chosen products in numbered slots with a progress bar, remove buttons and the total in your store's money format. Add bundle to cart sends all items in one Cart API request (/cart/add.js), respecting each variant's minimum quantity. If Shopify refuses it, for example because an item just sold out, its message appears in the tray. On success the section shows a message with a cart link, or goes to the cart page.

On screens 990 px and wider, the tray sits beside the grid and stays in view while scrolling. On smaller screens it sticks to the bottom of the section with compact thumbnails.

Customization

  • Collection to choose from, Products per bundle (2 to 5), Products to show and Columns on desktop.
  • Discount note: optional text under the total.
  • After adding the bundle: show a message with a cart link, or go to the cart page.
  • Labels: every button, progress, hint, success and error text. [count], [size], [n] and [title] are replaced automatically.
  • Background, Text, Accent (buttons) and Button text colors, plus Side, Top and Bottom padding.

Accessibility

Add buttons use aria-pressed and are tied to the product name. Remove buttons have names like "Remove Stoneware mug from bundle", and focus moves to the next one after use. The hint is announced politely, errors use role="alert", all controls show a focus outline, and transitions stop for people who prefer reduced motion.

Usage notes

This section requires an Online Store 2.0 theme and takes its fonts from it. It does not change prices: the note only describes a discount you set up yourself, such as an automatic discount in Shopify admin. Without one, shoppers pay the normal price of each item.

Many themes do not refresh their cart drawer or cart count after a Cart API request. The section dispatches a wds:cart:updated event you can hook into, or choose Go to the cart page. Each product can be added once per bundle.

The preview uses sample products from an invented store with photos from Unsplash; replace them with your own products. In the preview the cart request is simulated and two products start in the bundle.

Build Your Own Bundle Section for Shopify at a glance

Framework
Shopify
Code
Liquid
JavaScript
A small script inside the section, no jQuery
Dependencies
fonts.googleapis.com
Layout
Responsive, works on mobile
Category
Product Grids
License
Free for personal and commercial use

Questions about this section

Can I use the Build Your Own Bundle Section for Shopify code for free?

Yes. You can copy or download the Liquid code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my Shopify store?

Create a new section named shopify-bundle-builder in your theme code editor, paste the Liquid code and save. Then add the section to a page in the theme editor. It works with Online Store 2.0 themes.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

How to install

  1. In your Shopify admin, go to Online Store > Themes, open the theme's menu and choose Edit code.
  2. Under Sections, add a new section named shopify-bundle-builder, replace its contents with the Liquid code above and save.
  3. Open the theme editor, choose Add section and add it to the page.

Requires an Online Store 2.0 theme. Try it on a copy of your theme first. WebDevSnippets is not affiliated with or endorsed by Shopify.

Build Your Own Bundle Section for Shopify – free Shopify product grid template
Build Your Own Bundle Section for Shopify · free Shopify product grid template

More Product Grids

Product Grid with Filters – free Tailwind CSS product grid template

Product Grid with Filters

Tailwind CSS category page with a collapsible filter sidebar, live result count, empty state and a product grid sortable by price, rating or date.

Product Listing Grid – free Bootstrap 5 product grid template

Product Listing Grid

Responsive Bootstrap 5 product grid with sale, new, bestseller and sold-out badges, color swatches, wishlist buttons, sorting and client-side pagination.

Responsive Product Grid with Sort Bar – free Pure CSS product grid template

Responsive Product Grid with Sort Bar

Pure CSS product grid with photo cards, a results count and a sort dropdown that reorders items by price, rating or date with vanilla JS.

Product Grid with Quick Add on Hover – free Tailwind CSS product grid template

Product Grid with Quick Add on Hover

Tailwind CSS product grid where a quick add bar slides up over each photo on hover or focus, with a live bag counter and wishlist toggle.