Description
Codiffy Box Builder for WooCommerce adds a new 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.
Features
- New product type “Box (build your own)” with its own Box tab in the product editor.
- Choose what goes in: pick individual simple products and variations, whole categories, or both.
- Box size: a minimum and maximum number of items (set both to the same number for an exact size), plus an optional limit for any one item.
- Three pricing modes:
- Fixed box price: the regular and sale price from the General tab.
- Sum of the chosen items: the current prices of the items inside.
- Sum of the items + box fee: for example for packaging.
- Tax done right: the box uses the tax status and tax class you set on the General tab.
- Storefront builder: a responsive grid with image, name, price and stock for each item, +/- buttons, a live “4 of 6 chosen” counter and a live total. Add to cart is enabled only when the box is complete.
- Large catalogues: items load 12 at a time with a “Load more” button.
- One cart line per box: the contents are listed under the box in the cart, checkout, order emails, My account and the admin order screen. The same box with different contents becomes a separate line.
- Stock of the items inside is reduced when the order is placed, and restored when the order is cancelled or the refunded boxes are restocked.
- Secure by design: contents, quantities, stock, product status and prices are all validated on the server, including add-to-cart requests through the Store API.
- Works with block themes such as Twenty Twenty-Five and classic themes, and with the block and classic cart and checkout.
- Accessible: labelled buttons and quantity fields, keyboard friendly, and a live region that announces the counter.
- Lightweight: no settings page, no external services, no tracking. The builder’s files load only on box product pages.
How it works
- Go to Products > Add New and choose Box (build your own) as the product type.
- On the General tab set the box price (for a fixed-price box) and its tax status and class.
- On the Box tab choose the allowed products or categories, the minimum and maximum number of items and the pricing mode.
- Publish. Customers fill the box on its product page and add it to the cart.
Developers
The filter codiffy_box_builder_items_per_page changes how many items the builder shows before “Load more” (default 12).
About Codiffy
Codiffy Box Builder is built and maintained by Codiffy, a WordPress and WooCommerce development studio. Need a custom feature for your store? Get in touch.
Screenshots





Installation
- Make sure WooCommerce is installed and active.
- In WordPress go to Plugins > Add New, search for “Codiffy Box Builder” and click Install Now, then Activate. (Or upload the plugin ZIP through Plugins > Add New > Upload Plugin.)
- Create a product and choose Box (build your own) as the product type.
Activating the plugin changes nothing in your store until you create a box product.
FAQ
-
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 (including sale prices). Sum of the items + 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 (for example when it is paid or set to processing), 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 if you want 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.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Codiffy Box Builder for WooCommerce” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Codiffy Box Builder for WooCommerce” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- First public release on WordPress.org, rebuilt from Codiffy’s in-house “Box Products” plugin.
- New: storefront box builder with +/- controls, live counter and total, and “Load more”.
- New: three pricing modes, per-item limits, and contents shown in the cart, checkout, emails and orders.
- New: stock of the items inside each box is reduced and restored with the order.
- Fixed: box contents are now fully validated on the server; tax settings are saved and used; box settings save on current WordPress.
- Improved: works with block themes and the block cart and checkout; accessible controls.
