--- title: "WooCommerce pick-and-mix bundles: let customers choose items by quantity" description: WooCommerce variations were not built for pick-and-mix bundles. A small plugin adds quantity tiers and a dropdown for each item slot. source: https://steem.dev/blog/woocommerce-mix-and-match-bundle-plugin published: 2026-09-07 updated: 2026-10-31 alternative_to: WooCommerce Mix and Match Products site: Steem — AI WordPress plugin generator --- # WooCommerce pick-and-mix bundles: let customers choose items by quantity WooCommerce variations are fine when a product has fixed attributes: size, colour, material. They fall apart when the number of choices depends on what the customer picks first. A five-pack where the customer chooses any five from twenty is one of the most common patterns in gift retail, and variations cannot express it. Each variation is a pre-listed row in the database, and 'any five from twenty' would need twenty to the power of five of them. The WooCommerce Mix and Match Products extension handles this properly, with per-item stock, subscription support and child products that have their own prices. For a small shop with a fixed list of options (the scents in a candle sampler, the flavours in a chocolate box, the cuts in a meat box), most of that is overhead. What the shop needs is a quantity tier selector that produces the right number of item dropdowns when the customer picks one. This plugin adds a WooCommerce product type for exactly that: quantity tiers and prices in the product editor, the item list one line at a time, and a front end that does the rest. ## What one build covers - Custom WooCommerce product type for pick-and-mix bundles - Quantity tier table in the product editor with per-tier pricing - Item list defined as plain text, one item per line - Dynamic front-end rendering: selecting a tier generates the right number of item dropdowns via JavaScript - Selections stored as cart and order item metadata, shown in cart, checkout, and order admin ## What it does not cover - Items with separate WooCommerce stock tracking per option - Different item lists per quantity tier - Per-item pricing within a tier - Subscription or recurring bundle support - Minimum-selection enforcement before Add to Cart (short follow-up prompt required) ## The prompt ```text Build a WooCommerce plugin that registers a custom product type called Mix-and-Match Bundle using the woocommerce_product_class and woocommerce_product_types filters. Add a meta box labeled Bundle Setup on the product edit screen for this product type, containing: a quantity tier table with Add Tier and Remove Tier buttons using jQuery without page reload, where each row has a quantity number input and a price number input; and a textarea labeled Item List with helper text one item per line. Save both fields to post meta on woocommerce_process_product_meta, storing the tiers as a JSON-encoded array of objects with quantity and price keys. On the single product page for this type, remove the default add-to-cart section and output a custom form via woocommerce_single_product_summary containing: a fieldset of radio buttons, one per tier, labeled with the quantity and formatted price; a container div that JavaScript populates with the matching number of select dropdowns when a radio button is selected, each labeled Item 1, Item 2 and so on and populated with the items from the item list; and an Add to Cart button. Use wp_localize_script to pass the tier data and item list to the JavaScript. On form submission, validate that all dropdowns have a value and store the chosen tier quantity and the array of selected item values as cart item data using woocommerce_add_cart_item_data. Display the selections in the cart using woocommerce_get_item_data, persist them to order meta using woocommerce_checkout_create_order_line_item, and display them in the order admin screen. Register all hooks inside a function attached to plugins_loaded. ``` ## Why WooCommerce variations cannot model this Variations are enumerated up front: every valid combination has to exist as a row before anyone sees the product page. A shirt in three sizes and four colours is twelve rows. A pick-and-mix is not a set of attributes at all but free choices made at purchase, and how many choices there are depends on the tier. Product add-on plugins can attach dropdowns to a product, which covers a fixed number of choices that do not affect price. When the number of dropdowns has to change with an earlier choice, you would need a hidden set of add-on fields per tier, swapped by JavaScript, which is the workaround a purpose-built product type removes. If each item in the bundle is a real WooCommerce product with stock to track, as in a gift hamper, use the extension. If the items are a stable list of names without their own stock, a lighter plugin that reads a textarea and renders dropdowns is the closer fit. ## Tiers, a textarea and dropdowns that appear on demand Set a product's type to Mix-and-Match Bundle and a Bundle Setup box appears. The first part is a tier table, a quantity and a price per row, with rows added or removed without reloading and as many as you need. The second is a textarea for the items, one per line. On the product page, Add to Cart is replaced by a form: one radio button per tier, labelled with its quantity and price. Choosing a tier makes JavaScript render that many dropdowns (Item 1, Item 2 and so on), each listing every item. Each dropdown is independent, so a customer can pick the same item more than once. Adding to cart stores the tier and every selection as cart item metadata, copied to the order at checkout. The cart, checkout, order confirmation and order admin screen all show what was chosen, alongside the line item rather than as separate lines. Changing the item list later only affects new orders, and other product types in the store are untouched. ## Samplers, gift boxes and mixed packs Candle scents, cheese varieties, tea blends, snack flavours, bath products, seed collections: any product where the customer picks from one consistent list and the number of picks sets the price. It suits a shop that wants pick-and-mix without paying for an extension, where the options are not separate products with their own inventory. It also suits a developer who has inherited a store faking this with an enormous variation table and wants something that describes what the shop actually sells. ## When Mix and Match Products is worth paying for In this build the item list is a static menu, not products. Nothing knows when one option runs out, so if each item has its own stock count, the extension's per-item inventory is the reason to buy it. Per-item pricing, subscriptions and a different item list for each tier are all extension features this build lacks. A list that changes often or runs to hundreds of options is also hard to manage in a textarea, where the extension's product search earns its cost. Where the bundle is the main product line and has to hold up across a large catalogue, invest in the extension. This build is scoped for a small shop with a stable list that wants everything self-hosted. A follow-up message can block Add to Cart until every dropdown has a choice, prevent duplicate picks, or list the chosen items in the confirmation email. --- Source: https://steem.dev/blog/woocommerce-mix-and-match-bundle-plugin Build this plugin: https://steem.dev/app