Free WooCommerce plugin

Free Build-Your-Own Box Plugin for WooCommerce

Codiffy Box Builder is a free WooCommerce plugin that lets customers build their own gift or pick-your-own box from products you choose, with a live counter, a live total and rules checked on the server. It is for chocolate, tea, coffee, wine, snack and gift shops that sell "pick any 6" boxes.

FreeDirect download, GPLv2 or later

  • Free ZIP download from codiffy.com
  • Awaiting review on WordPress.org
  • Built and supported by Codiffy
  • For WordPress with WooCommerce

What it does

  • New product type

    Box (build your own), with its own Box tab in the product editor

  • Choose what goes in

    Individual simple products and variations, whole categories, or both

  • Box size

    A minimum and maximum number of items, or an exact size, plus a limit for any one item

  • Three pricing modes

    A fixed box price, the sum of the chosen items, or the sum plus a box fee

  • Live counter and total

    A grid with pictures, prices and stock, + and - buttons, "4 of 6 chosen" and the running total

  • One cart line per box

    The contents are listed in the cart, checkout, order emails, My Account and the admin order screen

  • Stock of the items inside

    Reduced when the order is placed and restored when it is cancelled or refunded with restock

  • Checked on the server

    Contents, quantities, stock, product status and prices, including Store API add-to-cart requests

Codiffy Box Builder adds a new WooCommerce product type, Box (build your own). Customers open the box’s product page, pick the items they want from a grid and add the whole box to the cart as one product. A chocolate shop can sell “any 6 truffles”, a wine shop a “build your own 12-bottle case”, a tea shop a “pick 4 teas” gift box.

You decide which products may go in the box, how many items it holds and how it is priced. Every rule is checked again on the server when the box is added to the cart and before checkout, so a box can never be bought with items, quantities or prices you did not allow.

How a build-your-own box works: an example

A chocolate shop creates “Build Your Own Truffle Box”: 4 to 6 truffles from its Truffles category, at most 3 of any one truffle, priced as the sum of the chosen truffles plus a $4.00 box fee for the ribbon and packaging.

  • On the product page the customer sees every allowed truffle with its picture, price and stock, and adds them with the + and – buttons.
  • The counter says how many are chosen (“5 of 6 chosen”) and the total updates as they go: in the example below five truffles cost $16.10, so the box is $16.10 + $4.00 = $20.10.
  • Add to cart works only once the box holds between 4 and 6 truffles. A sold-out truffle cannot be chosen.
  • The cart shows one line for the box, with its contents listed underneath. The same box with different contents becomes a separate line.
  • When the order is placed, the stock of every truffle inside goes down; it comes back if the order is cancelled.
A Build Your Own Truffle Box product page: a grid of eight truffles, each with a picture, price, stock and plus and minus buttons, five chosen, the counter showing 5 of 6 chosen, a total of $20.10 including the $4.00 box fee, and an Add box to cart button.
The box builder on the product page, with the live counter and the live total.
The WooCommerce cart with one line for the truffle box at $20.10 and its contents listed underneath: 2 Dark Sea Salt, 1 Salted Caramel, 1 Hazelnut Praline and 1 Pistachio truffle.
One cart line per box, with the contents underneath.

How to set up a gift box in WooCommerce

  1. Make sure WooCommerce 8.0 or newer is active, then install the plugin from the ZIP below under Plugins > Add New > Upload Plugin and activate it.
  2. Go to Products > Add New and choose Box (build your own) as the product type.
  3. On the General tab set the box price (for a fixed-price box) and its tax status and class.
  4. On the Box tab choose the allowed products or categories, the minimum and maximum number of items, the limit for any one item and the pricing mode.
  5. Publish. Customers fill the box on its product page and add it to the cart.

Activating the plugin changes nothing in your store until you create a box product. It has no settings page, contacts no external service, tracks nobody, and loads its files only on box product pages.

The WooCommerce product editor for a Box (build your own) product, with the Box tab open: allowed products, allowed categories set to Truffles, minimum 4 and maximum 6 items, at most 3 of each item, pricing set to the sum of the chosen items plus a box fee of 4, and the layout columns.
The Box tab in the product editor.

Three ways to price a box

  • Fixed box price: the regular and sale price from the General tab, whatever goes inside.
  • Sum of the chosen items: the current prices of the items inside, sale prices included.
  • Sum of the items plus a box fee: the items’ prices plus your fee once per box, for example for packaging.

The box is taxed as one product with the tax status and class from its General tab. Large catalogs load 12 items at a time with a “Load more” button.

The box contents follow the order

The contents are listed under the box in the cart, at checkout, in order emails, in My Account and on the admin order screen, so whoever packs the order sees exactly what to put in.

The WooCommerce Order received page for order 34: one Build Your Own Truffle Box at $20.10, with its box contents listed under the product.
The order confirmation lists the box contents.
The WooCommerce admin order screen: the truffle box order item at $20.10 with a Box contents line naming each truffle and its quantity.
The admin order screen shows the contents on the order item.

For developers

The filter codiffy_box_builder_items_per_page changes how many items the builder shows before “Load more” (12 by default). It works with block themes and classic themes, and with the block and classic cart and checkout; add-to-cart requests through the WooCommerce Store API are checked the same way.

Download the free plugin

Codiffy Box Builder is waiting for its review in the WordPress.org plugin directory. Until it is listed, download version 1.0.0 here, the same package that was submitted: enter your details and the download starts straight away. It is free under the GPLv2 or later license.

Download Codiffy Box Builder for WooCommerce

Free. Tell us who you are and the download starts straight away.

We use these details only to provide the download and contact you about the plugin, and for news only if you tick the box above.

Need something it doesn’t do?

Codiffy builds and changes WooCommerce plugins to order, from a subscription box to a full product configurator. Book a free call and get a fixed price before any work starts. More free plugins from us: Make an Offer for WooCommerce, Tiered Pricing for WooCommerce and Store Hours for WooCommerce.

Compatibility

  • WordPress6.5 or later, tested with 7.1
  • WooCommerce8.0 or later, tested with 11.2
  • PHP7.4 or later
  • Cart and checkoutBlock and classic
  • LicenseGPLv2 or later, free
  • Version1.0.0, awaiting review on WordPress.org

Compatibility is what the plugin's readme states. Running a newer WordPress or WooCommerce version? Ask us before you install and we will tell you honestly whether it has been checked.

Questions about Codiffy Box Builder for WooCommerce.

Which products can go in a box?

Published simple products and single variations that can be bought. Pick them under Allowed products, or allow whole categories under Allowed categories, which adds the simple products in those categories. To offer variations, add the variations themselves under Allowed products.

Can a customer cheat the price or add products I did not allow?

No. The browser only helps the customer choose. When the box is added to the cart, and again before checkout, the server checks that every item is allowed, published, purchasable and in stock, that the number of items is within your limits, and it calculates the price itself.

How is a box priced?

Choose a pricing mode on the Box tab. Fixed box price uses the General tab price. Sum of the chosen items adds up the items' current prices, sale prices included. Sum of the items plus a box fee adds your fee once per box.

How is tax calculated?

The box is taxed as one product with the tax status and tax class from its General tab. In the sum modes the item prices are added up first, then the box's tax settings apply.

What happens to stock?

The stock of every item inside the box is reduced when WooCommerce reduces the order's stock, and restored when the order is cancelled. When you refund boxes with Restock refunded items ticked, their contents are restocked too. The box product can also have its own stock to limit how many boxes you sell.

What if an item sells out while a box is in a customer’s cart?

The box is removed from the cart with a notice explaining why, so the customer can build it again.

Does it work with the block cart and checkout?

Yes. The contents are shown under the box in both the block and classic cart and checkout.

What is removed when I delete the plugin?

The plugin stores no options of its own. The box settings stay on your box products and order history stays untouched, so you can reinstall without losing anything. While the plugin is not active, box products cannot be bought.

More plugins

Plugin store

Ready-made plugins for WordPress and WooCommerce, built and supported by the Codiffy team.

Browse all plugins and themes Need something custom? We build plugins to order.

Need it to do something else?

We build and change WordPress and WooCommerce plugins to order. Book a free 30-minute call and leave with a fixed quote.

Prefer we call you? Request a callback

★ 5.0 on Google · 13 reviews (opens in a new tab)

CallBook a free call