Zum Inhalt springen
Termin buchen
Shopware 6 Manual

Dynamic Packaging Units

Packaging units from one stock: sell single items, boxes or pallets without keeping three stock levels. Every order deducts the pieces it contains from that stock.

Version 6.7.5 Compatible with 6.7.0 and newer 53 min read
On this page

Introduction

With Dynamic Packaging Units you sell one product in several packaging sizes — for example as a single piece, a 6-pack, a carton or a pallet — and all sizes draw on one shared stock.

What you achieve with this plugin

  • You set up your packaging sizes once and assign them to any number of products.
  • Your customers choose the packaging and the number of packages on the product page. They immediately see the price per package, the price per piece and the total pieces.
  • You maintain a single stock. A customer who buys a carton of 12 uses up 12 pieces of that stock.
  • For products with clearance sale, packaging sizes your stock can no longer cover disappear from the selection on their own. With 20 pieces in stock, a pack of 24 is simply not offered.
  • The shopping cart states clearly what was ordered, for example “3× Carton (36 pieces)”.
  • Several variants of a product can share one stock — such as single can, 6-tray and 12-carton from the same supply.
  • If you enter the weight and dimensions of a packaging unit, weight- and volume-based shipping methods charge for the package instead of the single item.
  • You can switch the plugin on or off per sales channel.
  • The Pro package adds images per packaging, own package prices, discounts and tier discounts, minimum quantities and minimum order values, availability rules, email notifications, a quick order, a CSV import and further pool features (see Pro package).

Who is this plugin for?

For shops that sell the same goods in different quantities: beverages, food, consumables, wholesale and B2B — wherever customers order both single items and whole cartons.

Installation

After your purchase, the plugin is available directly in your Administration — there is nothing to download.

  1. Log in to your Shopware Administration (YourShop.com/admin).
  2. Open Extensions → My extensions.
  3. Click Install next to Dynamic Packaging Units.
  4. Activate the plugin using the switch next to the entry — done.

The plugin in the "My extensions" list Fig. 1: The plugin is installed and active. “Configure” takes you straight to the settings.

Note: In the extension list, the plugin name is shown in the system language of your shop. In a shop installed in German, the entry therefore reads Dynamische Verpackungseinheiten, even if your Administration is set to English.

If the plugin does not appear in the list, your Shopware account is not yet connected to the shop. You can do this under Extensions → My extensions by logging in with your Shopware account.

Getting Started

Four steps take you to your first product in several packaging sizes:

  1. Check the plugin in your sales channel: Open Extensions → My extensions and click Configure for the plugin. The switch Enable plugin for this sales channel is on by default. See Settings.
  2. Create packaging units: Under Products → Packaging Units you create your sizes, for example “6-pack” with 6 pieces and “Carton” with 12 pieces. See How to create packaging units.
  3. Set up the product: Open the product, go to the Packaging Units tab, turn on Enable dynamic packaging units, assign the units you want and click Save in the top right corner. See How to sell a product in packaging units.
  4. Check the result: Open the product in your shop. Above the cart button you now see Select packaging and Number of packages. See What your customers see.

Settings

You find the settings under Extensions → My extensions by clicking Configure for the plugin.

Plugin configuration page Fig. 2: The configuration page with the sales channel selection, the “Open documentation” button and the “Enable plugin for this sales channel” switch.

Sales Channel

At the top, under Sales Channel, you choose which shop the setting applies to. With All Sales Channels you set the value for all channels together. If you choose a specific channel, you can set a different value there.

Open documentation

The Open documentation button takes you straight to this manual on our website.

Enable plugin for this sales channel

The switch Enable plugin for this sales channel decides whether the plugin is active in the selected sales channel. It is on by default.

If you turn it off, your customers see no packaging selection and no shared-stock information in this sales channel, and the order quantity is not limited there. Orders from this channel still deduct from the shared variant stock — the pool is the stock for all sales channels, otherwise sales from the switched-off channel would be missing from the stock. Other sales channels are not affected.

Why this is useful: Say you run a B2B shop for wholesale customers and a shop for consumers. In the B2B shop you offer cartons and pallets, while the consumer shop keeps selling single items only — without uninstalling the plugin.

Settings for the Pro package

The following settings only take effect with the Pro package unlocked. You set them per sales channel as well.

Configuration page with the Pro settings Fig. 3: The plugin configuration with the cards “General”, “Availability notifications” and “Quick order”.

  • Show discount in the order line items (General card): shows below the product name in the Administration’s order view which discount was granted on a packaging. On by default. More in How to grant a discount on a packaging.
  • Minimum order value of a packaging unit refers to (General card): sets which goods value must reach the minimum order value of a packaging — the entire cart, this line only or the rest of the cart. The default is Entire cart (including this line). More in How to set a minimum order value.
  • Enable notification feature and Check availability and send emails (Availability notifications card): turn on the email notification for sold-out packaging and set whether the shop checks once a day or every hour. More in How to notify customers when a packaging is available again.
  • Offer quick order (Quick order card): shows or hides the quick order in the customer account. On by default. More in How your customers use the quick order.

Click Save after every change.

How to create packaging units

What this gives you: You define your packaging sizes once in a central place and then use them for as many products as you like. If you change a unit, the change applies wherever it is assigned.

You find the overview under Products → Packaging Units.

List of packaging units Fig. 4: The “Packaging Units” overview with the units 6-pack, Carton, Bulk pack and Pallet.

For each unit the list shows the Name, the Quantity (pieces), the Position and whether it is Active.

Step by step

  1. Go to Products → Packaging Units.
  2. Click Create packaging unit.
  3. Enter the details:
    • Name: This is what the packaging is called in your shop later, for example “Carton” or “6-pack”. You can translate the name per language by switching the language at the top.
    • Quantity (pieces per packaging unit): How many single items this packaging contains. This number is deducted from stock on purchase and determines the package price.
    • Position: Sets the order in which the units are shown. Lower numbers appear first.
    • Active: Only active units are used. This lets you take a packaging temporarily out of your range without deleting it.
  4. Optionally, fill in Weight (kg), Width (cm), Height (cm) and Length (cm) in the Weight & Dimensions section — see below.
  5. Click Save.

Packaging unit detail page Fig. 5: The detail page of the “6-pack” unit with the sections “Packaging Unit Detail” and “Weight & Dimensions”.

Weight and dimensions for shipping costs

What this gives you: If you charge shipping by weight or volume, Shopware needs the weight of the whole package. Without it, a carton of 10 bottles would be charged as if it were 10 individually packed bottles.

If you enter the total weight of the package under Weight (kg) and, if needed, the dimensions, Shopware uses these values to calculate shipping costs. If the fields stay empty, Shopware calculates as it would without the plugin, using the values of the single product.

Shipping methods based on order value work without any further details.

Tip: The Active column in the overview lets you switch a unit on and off directly in the list. A message confirms the change.

How to sell a product in packaging units

What this gives you: On the product page your customers choose between the packaging units you assigned to the product. The plugin calculates quantities, prices and stock itself.

The "Packaging Units" tab of a product Fig. 6: The “Packaging Units” tab of the product “Organic Still Mineral Water 0.75 l” with three assigned units.

Step by step

  1. Go to Products → Overview and open the product.
  2. Switch to the Packaging Units tab.
  3. Turn on Enable dynamic packaging units. From now on, your customers select a packaging size instead of entering any quantity they like.
  4. In the Assigned Packaging Units section, select one or more units in the Select a packaging unit… field.
  5. Click Add packaging unit. The units appear in the list below with Packaging Unit, Pieces, Position and Active.
  6. Click Save in the top right corner so that the switch from step 3 is stored.

Adjusting assignments

  • Order and active status can be changed right in the list: double-click a row, adjust Position or tick/untick Active and confirm.
  • Many units: from 26 assigned units on, page through the list below it or set how many entries a page shows.
  • To remove a unit, use the three-dot menu at the end of the row and choose Delete. Confirm the prompt Remove assignment with Delete. The packaging unit itself is kept and may stay assigned to other products.

Important: The switch Enable dynamic packaging units is stored separately for each language. If you maintain the product in several languages, select the other language in the language selection at the top and turn the switch on there as well. See also Troubleshooting.

Tip: For products with variants, the variants inherit the assignments of the main product. You only set up the packaging once on the main product.

How variants share one stock

What this gives you: If you sell the same goods as variants in different quantities — such as single can, 6-tray and 12-carton — your warehouse still holds just one supply. Instead of maintaining three separate stocks, you create one shared stock (called a “pool” in the plugin). Each variant uses up as many units from it as it contains.

You set this up on the main product in the Shared Stock tab.

Step 1: Turn on shared stock and create a pool

The "Shared Stock" tab with one pool Fig. 7: The “Shared Stock” tab of the product “Organic Coconut Milk 400 ml” with the pool “Pool 400 ml” and a total stock of 240.

  1. Go to Products → Overview and open the main product with the variants.
  2. Switch to the Shared Stock tab.
  3. Turn on Enable shared variant stock. The variants of this product then share the pools you create here.
  4. In the Pools section, click Add pool. A new pool appears in the list.
  5. Open Edit via the three dots at the end of the row and fill in the Edit pool window:
    • Pool label: A name for this supply, for example “Pool 400 ml”. Your customers see it on the product page.
    • Total stock: How many single units are currently in stock.
    • Initial stock: The upper limit up to which a cancellation restores the stock. Leave it empty for no limit — a restore is then never capped.
    • Active: Only active pools are used. If a pool is inactive, its variants run on their own stock and new orders deduct nothing from the pool.
  6. Click Save.
  7. Click Save in the top right corner of the product so that the switch from step 3 is stored.

You can also change the values of a pool right in the list: double-click the row, adjust the values (Active via the checkbox) and confirm. To remove a pool, use the three dots and Delete, then confirm the prompt with Delete. This also removes all variant assignments of that pool. The stock of the main product is then recalculated from the remaining active pools (for example 100 + 40 → 100 after deleting the pool of 40). The variants of the deleted pool keep their last shown stock as their own stock — check and maintain it yourself afterwards.

Step 2: Assign variants to the pool

The "Variant assignment" section Fig. 8: The variant assignment — 12-carton uses 12, 6-tray 6 and single can 1 unit per purchase.

  1. Scroll down to the Variant assignment section. It lists all variants of the product.
  2. For each variant, choose the matching pool in the Pool column.
  3. In the Units per purchase column, enter how many units one purchase of this variant takes from the pool — 12 for the 12-carton, 1 for the single can.
  4. The switch in the Active column suspends the pool control of a variant temporarily: the pool no longer limits its order quantity, the shop shows no pool notice, and its stock is no longer filled from the pool. New orders of this variant deduct nothing from the pool; its own stock counts (initially the last synced value). Orders already booked stay booked and are restored to the pool on cancellation. If a variant should run permanently without the pool, switch off its custom field instead (see Take a single variant out of the shared stock).

Your changes are saved immediately.

How the shared stock works

  • With every order, the plugin deducts the units used from the pool.
  • If an order is cancelled, it restores the units — at most up to the Initial stock, if you entered one.
  • If you edit an order in the Administration (change a quantity, add or remove a position) and save it, the plugin updates the pool: it deducts or restores only the difference, just like Shopware does with the stock. As long as you don’t save, nothing changes. A cancelled order is only booked again when it is reopened.
  • If the pool does not cover an order, the plugin still deducts the full amount. The pool then goes negative (backorder) — just like the stock of a regular Shopware product without clearance. A cancellation restores exactly the deducted amount, also after the order was edited (at most up to the initial stock, if you entered one); if the order is reopened, the plugin deducts again.
  • The plugin keeps the stock fields in the Administration up to date: the Stock of the main product shows the units of all active pools together, the stock of each pool variant how often it can still be ordered. With 25 units in the pool, the main product shows 25, the single cartridge 25 and the box of 25 shows 1. A negative pool is mirrored too: at −12 units the main product shows −12 and the 6-tray −2.
  • When the sync runs: if an action returns stock to the pool — cancellation, quantity reduced, position removed or exchanged for another product — all variants of the pool are updated immediately. If an action consumes stock — new order, quantity increased, position added, order reopened — the main product and the ordered variants are updated immediately, the other variants of the pool a few seconds later in the background. This keeps checkout and order editing fast even for pools with many variants. During this short time their displayed stock can only be too high, never too low. Changing, deactivating or deleting a pool or an assignment, or switching the custom field Shared variant stock active, also syncs in the background. The quantity check in the cart always uses the current pool, not the displayed stock values, so the short delay never sells beyond the pool. So always change the stock in the pool: a stock entered on the main product or a pool variant by hand, by import, via an interface or by your ERP is overwritten by the next sync. If you remove a variant from the pool or delete the pool, it keeps its last synced stock — enter it yourself then.

Clearance sale decides whether the pool limits the quantity

The plugin follows Shopware’s standard behaviour. Whether a variant can only be sold as often as the pool allows is set with the Clearance sale switch — on the main product in the General tab under Deliverability. The variants inherit this value.

Clearance saleWhat happens in your shop
offThe variant can be ordered freely, even when the pool is empty. Every order still deducts from the pool, and the pool may go negative. Your customers see no information on how much is left, and all packaging options can be selected.
onThe variant can be ordered at most as often as the pool has units for it (pool stock ÷ units per purchase). If a customer puts more into the cart, the shop reduces the quantity and shows a notice. Several packs of the same pool in one cart share the stock. On the product page your customer sees how much is left in the pool and the maximum they can order (see What your customers see). If the pool is empty or negative, the variant cannot be purchased.

Important — maintain clearance sale on the main product only: You can set Clearance sale on individual variants differently from the main product. The plugin respects this, just like Shopware. But if variants with and without clearance share the same pool, availability in your shop becomes hard to follow: the variant without clearance keeps selling and pushes the pool below zero, which suddenly makes the variant with clearance unavailable — although nothing changed on it. So set Clearance sale once on the main product and let the variants inherit it.

Important — your ERP must not write the stock of pool variants: No ERP or inventory management system knows that the pool exists. When it syncs stock levels with Shopware, it overwrites the stock of the main product and the pool variants with its own values — usually 0, because it treats these variants as separate items without stock. The plugin corrects these values only at the next pool sync (next order, cancellation or pool change). Until then the Administration shows wrong stock, and with Clearance sale enabled your customers cannot order the variant although the pool has enough units. So exclude the main product and all pool variants from your ERP’s stock sync and transfer the quantity to the pool’s Total stock instead — manually or through the API into the pool (entity swp_shared_variant_stock, field totalStock).

Take a single variant out of the shared stock

If a variant should run normally with its own stock, switch the shared stock off for this variant only:

  1. Open the variant, go to the Specifications tab and scroll to the Custom fields card, tab Dynamic Packaging Units.
  2. Click the chain icon next to Shared variant stock active to remove the inheritance from the main product, and leave the switch off.
  3. Click Save.

This variant then behaves like any Shopware product: it deducts nothing from the pool, shows no pool information, and its own Stock counts — with or without clearance, as you set it on the variant. From now on you maintain its stock yourself; it initially keeps the last synced value.

Note: Like the switch for packaging units, Enable shared variant stock is also stored per language.

What your customers see

Choosing packaging and quantity

On the product page, the Select packaging selection appears above the cart button. Below it, under Number of packages, your customer sets how many packages they want. The Total pieces line always shows how many single items that adds up to.

Product page with packaging selection Fig. 9: The product page in its initial state — “Select packaging” is set to “Single piece”.

Live price calculation

As soon as your customer picks a packaging, the product page shows the Packaging price for one package, followed by the price per piece and the total price for all selected packages. Your customer immediately sees what one package and the whole order cost.

Product page with live price Fig. 10: “Carton (12 pieces)” with 3 packages — packaging price €10.68, €0.89 per piece, total €32.04, total pieces 36.

Only deliverable packaging is offered

For products with Clearance sale, the plugin only offers packaging your current stock can fully cover. If the stock is no longer sufficient for a packaging, it is missing from the selection — it is not greyed out, it is not shown at all. Once you restock, it reappears automatically.

Without Clearance sale, the stock does not limit the selection. As in Shopware’s standard behaviour, only the maximum order quantity you set on the product or in Shopware’s cart settings applies: a packaging larger than this quantity is not offered.

For variants with shared stock this only applies when Clearance sale is enabled. Without clearance all packaging options are offered, because the variant can be ordered beyond the pool (see How variants share one stock).

Product page with limited stock Fig. 11: With 20 pieces in stock, “Carton (12 pieces)” can be selected, while the bulk pack of 24 is not offered.

If no packaging is deliverable at all, your customer sees the notice “No packaging unit is currently available.”

Shared stock for variants

If you set up a shared stock and enabled Clearance sale (see How variants share one stock), your customer sees the pool with its current supply for the selected variant, followed by the maximum orderable quantity and how many units one purchase uses.

Product page with shared stock Fig. 12: The “6-tray” variant — “Pool 400 ml: 240 units” and “Max. 40 pieces orderable — 6 units per purchase”.

In the shopping cart

In the shopping cart, every packaging is a separate line item with a clear description, such as “3× Carton (36 pieces)”. Using plus and minus, your customer changes the number of packages — the quantity always stays a multiple of the packaging size.

Shopping cart with packaging line item Fig. 13: The shopping cart with “3× Carton (36 pieces)”, unit price €0.89 and subtotal €32.04.

If a quantity does not fit the packaging size or the stock is no longer sufficient, the cart informs your customer with a message, for example: “The quantity must be a multiple of 12 pieces (packaging unit: Carton).”

On smartphones

Packaging selection, price display and shopping cart also work on small screens.

Product page on a smartphone Fig. 14: The product page on mobile with “Carton (12 pieces)”, packaging price €10.68 and total pieces 12.

Shopping cart on a smartphone Fig. 15: The shopping cart on mobile with “3× Carton (36 pieces)”.

Pro package

What this gives you: The Pro package Dynamic Packaging Units Pro adds prices, rules and convenience for bulk buyers to your packaging units. You give a carton its own price, reward larger purchases with tier discounts, set minimum quantities and show packaging only to certain customers. Your customers see an image for each packaging, can ask to be notified when a packaging is available again, and order many products at once with the quick order.

What the Pro package includes

How to unlock the Pro package

The Pro package is an add-on purchase for the plugin. You book it directly in your Administration:

  1. Open a place with a Pro feature, for example the Packaging Units tab of a product, and choose Edit via the three dots next to a packaging.
  2. As long as the Pro package is not unlocked, you see the Pro feature notice there with the Unlock Pro package button.
  3. Click Unlock Pro package. Shopware’s purchase window opens.
  4. Complete the purchase. The Pro fields can be edited right away and the notice disappears.

Alternatively, you can book the Pro package in the Shopware Store on the plugin’s page. Your shop must be connected to your Shopware account for the purchase — just as for the installation (see Installation).

Locked Pro fields with notice Fig. 16: Without the Pro package: in the “Edit packaging unit “Carton"" window all Pro fields are locked, followed by the “Pro feature” notice and the “Unlock Pro package” button. The saved values remain visible.

Without the Pro package you see the Pro fields but cannot edit them. Values you already saved are kept but have no effect in the shop: your customers pay the regular price, and images, tier discounts, minimum values and rules do not apply; quick order and notifications do not appear. When you unlock the Pro package again, your saved values take effect immediately. All features from chapters 1 to 8 are available without the Pro package.

How to show an image for each packaging unit

What this gives you: Your customers see at a glance what a 6-pack, a carton or a pallet looks like.

  1. Go to Products → Packaging Units and open the packaging unit.
  2. In the Image field, upload an image or choose one from your media. A square image of at least 80 × 80 pixels works best.
  3. Click Save.

Packaging unit with image Fig. 17: The packaging unit “Carton” with an image in the “Image” field.

What your customer sees: On the product page, a small image of the selected packaging appears to the left of the selection under Select packaging and changes with the selection. In the cart it is shown small in front of the packaging information, such as “10× Carton (120 pieces)”, and also in the list of sold-out packaging. The image applies to every product the packaging unit is assigned to.

Product page with packaging image and package price Fig. 18: The product page with “Carton (12 pieces)”: a small image of the packaging to the left of the selection, packaging price €19.32 with “-3 %”, the tiers and total pieces 24.

Editing the Pro settings on the product

Own package price, discount, tier discounts, minimum order quantity, minimum order value and availability rule are set per product and packaging. You find all six in the same place:

  1. Go to Products → Overview and open the product.
  2. Switch to the Packaging Units tab.
  3. In the list, click the three dots at the end of the row and choose Edit.
  4. In the Edit packaging unit ”…” window, enter the values you need. Fields you leave empty have no effect.
  5. Click Save in the window. The values apply immediately.

Packaging list on the product with Pro columns Fig. 19: The “Packaging Units” tab of the product “Organic Cloudy Apple Juice 1 l”: the carton has a package price of €19.90, a 3 % discount plus 2 tiers, minimum quantity 2, minimum order value €50.00 and an availability rule (the last three columns shown via the ☰ icon). Only retailers see the pallet.

Window for editing a packaging Fig. 20: The “Edit packaging unit “Carton"" window with a package price of €19.90 gross, 3 % discount, the tiers 5 % from 5 packages and 10 % from 10 packages, minimum order quantity 2 packages, minimum order value €50 and an availability rule.

The Package price and Discount columns in the list show what applies to which packaging. The Min. quantity, Min. order value and Availability rule columns are hidden at first so the table fits the card: click the ☰ icon at the top right of the table and tick them. The Administration remembers the choice for your user. For products with variants, the values of the main product also apply to the variants.

How to give a packaging its own package price

What this gives you: A carton may cost less than twelve single bottles. You set the price for the whole package, independently of the product’s unit price.

In the edit window, enter the price for one whole package at the top under Price (gross) (see Editing the Pro settings on the product). The Administration calculates the value under Price (net) from the product’s tax rate; the lock icon between the fields removes the link so you can enter the net price yourself. If you leave the fields empty, the regular product price including your tier prices applies.

What your customer sees: When they select the packaging, the product page shows your package price as the Packaging price, with the price per piece below. The product’s reference price stays visible. In the cart, Shopware spreads the package price across the pieces and rounds the price per piece to the cent. A package price of €10.00 for 12 pieces therefore results in €0.83 per piece and €9.96 per package.

Tip: Choose a package price that divides evenly by the number of pieces; the amount in the cart then matches your package price exactly.

How to grant a discount on a packaging

What this gives you: You reward the purchase of larger packaging without recalculating prices.

In the edit window, enter a percentage under Discount, for example 5. The discount applies to your own package price. If you have not set one, it applies to the regular product price including your tier prices. Empty or 0 means: no discount.

What your customer sees: The packaging price on the product page is already reduced, with the discount shown next to it, for example “-3 %”. In the cart, a badge next to the packaging shows the discount, for example “-5 %”.

Cart with image and discount Fig. 21: The cart with “10× Carton (120 pieces)”, the packaging image and the tier discount “-10 %”.

Seeing the discount in the order: In the plugin configuration, the switch Show discount in the order line items is on by default. The order view in the Administration then shows the granted discount below the product name, for example “−10 % discount (tier discount)”. The switch does not affect prices.

Discount in the order view Fig. 22: The order view with “−10 % discount (tier discount)” below the product name.

How to set up tier discounts by number of packages

What this gives you: Customers who take more packages pay less per package — automatically and immediately visible to them.

  1. Open the edit window of the packaging (see Editing the Pro settings on the product).
  2. In the Tier discounts section, click Add tier.
  3. Under From packages, enter the number of packages from which the tier applies, and under Discount the percentage — for example 5 % from 5 packages.
  4. Repeat this for further tiers, for example 10 % from 10 packages. The trash icon removes a tier.
  5. Click Save.

Each tier starts at 2 packages or more, the discount is above 0 and below 100 %, and no number of packages may appear twice. Otherwise a message points this out and nothing is saved.

Important: Once the customer reaches a tier, it replaces the discount from the Discount field — the discounts are not added up. If you entered a 3 % discount and a tier “10 % from 10 packages”, the customer pays 10 % less for 12 packages, not 13 %.

What your customer sees: Below the packaging price, the product page lists your tiers, such as “Tier discount: from 5 packages −5 %, from 10 packages −10 %”. When the customer changes the Number of packages, the page recalculates the price with the matching tier right away.

Product page with tier discount and minimum values Fig. 23: Detail of the product page: “Tier discount: from 5 packages −5 %, from 10 packages −10 %”, followed by “Minimum order quantity: 2 packages” and “Minimum order value: €50.00”.

How to set a minimum order quantity

What this gives you: You sell pallets or bulk packs only in sensible quantities, for example from 3 packages.

In the edit window, enter under Minimum order quantity (packages) how many packages of this packaging a customer must order at least. Empty or 1 means: no minimum.

What your customer sees: The product page shows, for example, “Minimum order quantity: 3 packages” below Number of packages. If the cart contains fewer, the cart shows a message such as “The minimum order quantity for “Pallet” is 3 packages. Currently in your cart: 1.” — only then can the customer order.

For products with Clearance sale, the plugin only offers a packaging if your stock fully covers the minimum quantity.

How to set a minimum order value

What this gives you: A packaging can only be ordered from a certain goods value — so that, for example, shipping a pallet pays off.

  1. In the edit window, enter the amount in your default currency under Minimum order value. Shopware converts it for other currencies. Empty or 0 means: no minimum order value.
  2. In the plugin configuration, set what the value refers to: Minimum order value of a packaging unit refers to. You set this per sales channel:
    • Entire cart (including this line) — the whole cart must reach the value. This is the default.
    • This line only — the line item with this packaging alone must reach the value.
    • Rest of the cart (without this line) — the other products in the cart must reach the value. This lets you offer a packaging as an add-on to a larger order.

Shipping costs never count. An example: minimum order value €50, 3 packages for €121.50 in an otherwise empty cart — orderable with Entire cart and This line only, blocked with Rest of the cart.

What your customer sees: Depending on the setting, the product page shows “Minimum order value: €50.00”, “Orderable from a line value of €50.00” or “Orderable with at least €50.00 of other goods in the cart”. If the value is not reached in the cart, a message names the current value, and the customer can only order once it is reached.

Cart with minimum order value notice Fig. 24: The cart with 2 cartons for €38.64 and the message “A minimum order value of €50.00 applies to “Carton”. Your cart: €38.64.”

How to offer a packaging only to certain customers

What this gives you: Only your retailers see the pallet, only customers in your B2B shop see the bulk carton — using the rules you already maintain in Shopware’s Rule Builder.

  1. Create the rule in the Rule Builder as usual, for example with a customer group, sales channel or cart value condition.
  2. In the packaging’s edit window, choose this rule under Availability rule.
  3. Click Save.

If the field shows Available to everyone, there is no restriction. If you delete the rule in the Rule Builder, the packaging becomes available to everyone again.

What your customer sees: If the rule does not match for them, the packaging is missing from the selection. If it is already in the cart and the rule no longer matches — for example because they logged out — the message ""Pallet” is currently not available to order for you. Please remove the item from your cart.” appears.

Good to know: The plugin checks cart conditions without the line item with this packaging. A packaging can therefore never unlock itself: with a rule “cart value from €100”, only what else is in the cart counts.

How to release a variant with shared stock only to certain customers

What this gives you: For variants with shared stock (see How variants share one stock), too, a rule decides who may buy which variant — for example the 12-carton only for retailers.

  1. Open the main product, Shared Stock tab, Variant assignment section.
  2. Choose the rule for the variant in the Availability rule column. The column can be edited as soon as the variant has a pool.

Your change is saved immediately. If the column shows Available to everyone, there is no restriction.

What your customer sees: The variant stays visible on the product page. If the rule does not match for them, it says “This variant is currently not available.” and they cannot add it to the cart. If it is already in the cart, a message asks them to remove the item.

Shared stock with Pro columns Fig. 25: The “Shared Stock” tab of the product “Plain Cotton Fabric 140 cm”: four pools generated from the “Colour” property with the unit “Meter” and the “Property value” column. In the variant assignment, the “Anthracite” variant is released for retailers only.

How to notify customers when a packaging is available again

What this gives you: You don’t lose the customer when a packaging is sold out. They leave their email address and are informed automatically as soon as your stock covers the packaging again.

Setting it up: You find the settings in the plugin configuration in the Availability notifications card. Both apply per sales channel:

  • Enable notification feature — on by default. If you turn it off, this sales channel offers no notification.
  • Check availability and send emails — how often the shop checks whether a requested packaging is available again: Once a day (default) or Every hour.

You adjust the texts of the emails under Settings → Email templates: Packaging unit available again is the notification, Confirm availability notification the confirmation email with the link.

What your customer sees: If your stock no longer covers a packaging, the product page lists it under Currently unavailable packaging: with the Notify me button. A click opens the Notify when available window. There the customer enters their Email address, consents to its storage and clicks Request notification. No customer account is needed.

Email confirmation (double opt-in): So that nobody can enter someone else’s address, the customer first receives an email with the link Confirm notification. Only after the click is the sign-up active; until then the window shows “Almost done: we have sent you an email …”. The link is valid for 48 hours, and the shop deletes unconfirmed sign-ups automatically afterwards. If the customer is logged in and uses the address of their customer account, the sign-up is active immediately. Repeated sign-ups from the same visitor within a short time are slowed down — as for the contact form — with the message “Too many requests in a short time”.

Sold-out packaging with "Notify me" button Fig. 26: With 8 bottles in stock, “Carton (12 pieces)” and “Bulk pack (24 pieces)” are listed under “Currently unavailable packaging:”, each with the “Notify me” button.

The "Notify when available" window Fig. 27: The “Notify when available” window with email address and consent.

As soon as your stock covers the packaging again, the shop sends the email to all confirmed addresses at the next check — once, and in the language the customer signed up in. The address is deleted afterwards. Addresses for which no email was sent are deleted by the shop after 90 days.

Notification email Fig. 28: The email “Carton is available again: Organic Orange Juice 1 l” with the “View product” link.

Important — background processing required: The check and the sending run in the background through scheduled tasks. Your shop needs a running Messenger worker and scheduled task execution for this. In the default setup both only run while someone is logged in to the Administration — without a permanent worker, emails arrive late or not at all. Ask your technical administrator to set this up (see For Administrators / Technical Details).

Good to know: A packaging only sells out for products with Clearance sale. Without clearance sale it stays orderable and the notice does not appear.

Important: The link in the consent text leads to your sales channel’s privacy page. Set it up in your sales channel settings so that your customers can reach the privacy information.

How your customers use the quick order

What this gives you: Regular customers and bulk buyers know their product numbers. With the quick order they add many products including packaging and number of packages to the cart in one step, instead of opening every product page.

Setting it up: In the plugin configuration, Quick order card, Offer quick order is on by default. Turn it off for individual sales channels where you don’t need it — for example in your consumer shop.

What your customer sees:

  1. After logging in, they find the Quick Order entry in the account menu.

    Account menu with "Quick Order" Fig. 29: The account menu with the “Quick Order” entry.

  2. In each row they enter the Product number. As soon as the product is found, they choose the Packaging unit — the same packaging as on the product page is offered, plus the single piece.

  3. Under Package count they enter how many packages they want.

  4. + 5 rows adds further rows, up to 100 rows per order.

  5. A click on Add all to cart adds all rows to the cart together.

Quick order in the customer account Fig. 30: The quick order with three filled rows, followed by ”+ 5 rows” and “Add all to cart”.

The quick order does not accept more than 100 rows at once; the customer then splits the order. If a row cannot be processed — for example because the product number does not exist — the page lists the affected row under The following rows could not be processed:. All other rows are still added to the cart. The cart applies the same checks as for an order from the product page: stock, minimum quantities, minimum order value and rules.

How to import assignments from a CSV file

What this gives you: If you have many products, you assign packaging including package price, discount, tiers, minimum values and rule in one go instead of opening every product. You update existing assignments the same way.

  1. Go to Products → Packaging Units and click CSV import in the top right corner.
  2. In the CSV import of assignments window, click Download template. You get a file with the correct column names.
  3. Fill in the template in your spreadsheet program and save it as a CSV file.
  4. Select the file in the CSV file (max. 8 MB, 5,000 rows) field and click Start import.
  5. The result appears in the window under Import finished: how many assignments were created and updated, and which rows were skipped — with row number and reason.

CSV import of assignments Fig. 31: The CSV import after a run: 3 assignments updated, row 5 skipped because the product “DPU-3999” does not exist.

How the file is structured: one row per product and packaging, with the column names in the first row. Semicolon, comma or tab are allowed as separators. The columns:

  • product_number — product number (required)
  • packaging_unit — name of the packaging unit as created under Products → Packaging Units (required)
  • position — order on the product page
  • active — active: 1/0, yes/no or true/false
  • price — own package price, gross, in your default currency; the shop calculates the net price from the product’s tax rate
  • discount_percentage — discount in percent
  • discount_tiers — tier discounts as “from packages:percent”, several separated by |, for example 5:3|10:5. Replaces all existing tiers of this assignment.
  • min_quantity — minimum order quantity in packages
  • min_order_value — minimum order value in your default currency
  • availability_rule — name of the rule from the Rule Builder
product_number;packaging_unit;price;discount_tiers;min_quantity
DPU-1001;Carton;10.68;5:3|10:5;2
DPU-1001;Pallet;;;3

An empty cell leaves the existing value unchanged; for a new assignment the default applies. A ”-” removes the value. Write decimals with a point or a comma. The import skips invalid rows and lists them; all other rows are applied.

Important: The import finds packaging units and rules by their name. If two packaging units or two rules share the same name, it skips the row — give them unique names in that case.

How to give a pool its own unit label

What this gives you: If you sell fabric by the metre or drinks by the bottle, your customer sees “120 metres” in the shared stock instead of “120 units”.

  1. Open the main product, Shared Stock tab.
  2. Open Edit via the three dots next to the pool.
  3. In the Edit pool window, enter the label under Unit, for example “metres”. If you leave the field empty, the shop shows “units”.
  4. Click Save.

The "Edit pool" window with unit Fig. 32: The “Edit pool” window with the unit “Meter” and the property value “Colour: Anthracite”.

What your customer sees: The pool information on the product page uses your label, for example “Rot / Red: 120 Meter” and “Max. 60 orderable — 2 Meter each”. Without your own label it reads, for example, “Max. 40 pieces orderable — 6 units per purchase”.

Pool information with own unit label Fig. 33: The “Red” variant: “Rot / Red: 120 Meter” and “Max. 60 orderable — 2 Meter each”.

Note: The label applies to all languages of your shop. If you run a multilingual shop, choose a term understood in all languages, or leave the field empty.

How to create pools from a property

What this gives you: If a product has many variants — say every colour in several pack sizes — you don’t create each pool by hand. The plugin creates one pool per property value — for example one for “Red” and one for “Blue” — and assigns the matching variants right away.

  1. Open the main product, Shared Stock tab, and turn on Enable shared variant stock.
  2. In the Pools section, click Generate pools from property.
  3. In the window, choose under Property the property by which the pools should be split.
  4. Click Generate. A message confirms how many pools were created and how many variants were assigned.
  5. Then enter the Total stock for each new pool and check the Units per purchase in the Variant assignment. New assignments start with 1.
  6. Click Save in the top right corner of the product so that the switch from step 1 is stored.

The "Generate pools from property" window Fig. 34: The “Generate pools from property” window with the property “Colour” selected.

Pools are only created for values carried by at least one variant of the product. The Property value column in the pool list shows which value a pool comes from. If you generate again — for example after adding new variants — the plugin reuses the existing pools and only assigns new variants. If everything is already assigned, nothing changes.

Troubleshooting

The packaging selection does not appear on the product page

Possible causes: The plugin is switched off in the sales channel, the switch on the product is not active, or no active packaging units are assigned to the product.

How to fix it:

  1. Under Extensions → My extensions → Configure, check that Enable plugin for this sales channel is on for this sales channel.
  2. Open the product, Packaging Units tab: is Enable dynamic packaging units turned on, and did you click Save in the top right corner afterwards?
  3. Check in the same list that at least one unit is Active — and that the unit is also active under Products → Packaging Units.
  4. Clear the cache: Settings → System → Caches & indexes → Clear cache.

The packaging selection only appears in one language

Cause: The switch Enable dynamic packaging units is stored separately for each language. If you only turned it on in the main language, the selection is missing in the second language.

How to fix it:

  1. Open the product and select the affected language in the language selection at the top.
  2. Switch to the Packaging Units tab and turn on Enable dynamic packaging units here as well.
  3. Click Save.

The same applies to Enable shared variant stock in the Shared Stock tab.

A packaging is missing from the selection

Possible causes: For a product with Clearance sale, your stock is no longer sufficient for this packaging — with the Pro package also if it does not cover the Minimum order quantity (packages). Without clearance sale, the packaging is larger than the product’s maximum order quantity. With the Pro package, an Availability rule may also hide the packaging for this customer.

How to fix it:

  1. Increase the product’s stock (or the pool’s Total stock). The packaging then reappears automatically.
  2. If the stock is sufficient, check that the unit is set to Active on the product and under Products → Packaging Units.
  3. On the product’s Packaging Units tab, check the Availability rule column (show it via the ☰ icon) or open Edit to see whether a rule is set and whether it matches for the customer (see How to offer a packaging only to certain customers).

A variant with shared stock cannot be purchased

Possible causes: Clearance sale is enabled and the pool is empty or negative. Or the variant’s assignment or the pool is not active: then the variant’s own stock counts, and it is at the last synced value. Or your ERP overwrote the variant’s stock although the pool has enough units.

How to fix it:

  1. Restock the pool’s Total stock. If the variant should be orderable without stock, disable Clearance sale on the main product (see How variants share one stock).
  2. In the Variant assignment section, check that the variant has a pool and is Active.
  3. In the Pools section, check that the pool is Active and still has enough Total stock.
  4. If the variant’s stock is 0 or another value that does not match the pool, your ERP probably set it. Exclude the main product and pool variants from the stock sync (see How variants share one stock). The plugin restores the correct value at the next pool sync — immediately when you change the pool’s Total stock.

Shipping costs are calculated by single-item weight

Cause: No weight or dimensions are stored for the packaging unit.

How to fix it: Open the unit under Products → Packaging Units and enter the total weight of the package and, if needed, the dimensions in the Weight & Dimensions section.

The “Packaging Units” and “Shared Stock” tabs are missing on the product

Cause: Your user role lacks the permissions for these areas, or the plugin is not active.

How to fix it:

  1. Under Extensions → My extensions, check that the plugin is active.
  2. Ask an administrator to grant your user role the permissions Packaging Units or Shared Variant Stock.

Pro fields are locked and show the “Pro feature” notice

Cause: The Pro package is not unlocked, or the unlock has expired. Your saved values are kept but have no effect in the shop.

How to fix it:

  1. Click Unlock Pro package in the notice and complete the purchase (see How to unlock the Pro package).
  2. If you already bought the Pro package, check under Extensions → My extensions that your shop is connected to the Shopware account you bought it with, and reload the Administration.

The quick order does not appear in the customer account

Possible causes: The Pro package is not unlocked, Offer quick order is off for this sales channel, the plugin is switched off in the sales channel, or the customer is not logged in.

How to fix it: In the plugin configuration, check Enable plugin for this sales channel and Offer quick order for the affected sales channel. The quick order is only available to logged-in customers.

Customers receive no email although the packaging is available again

Possible causes: The shop does not send the emails immediately but at the next check — once a day or every hour, depending on the setting. This requires your shop’s background processing to run. Or the stock does not yet fully cover the packaging, with the Pro package including its minimum order quantity.

How to fix it:

  1. In the plugin configuration, Availability notifications card, check that Enable notification feature is on and how often the shop checks.
  2. Check that the stock covers package size × minimum order quantity.
  3. Ask your technical administrator to check that background processing is running (see For Administrators / Technical Details).
  4. Check that your shop can send emails and that the template Packaging unit available again exists under Settings → Email templates.

Products with the product configurator show no packaging selection

Why it happens: If a product also has configurator options from the extension Product configurator, the product page shows the regular buy form with the options instead of the packaging selection, together with the notice “This product is ordered as single pieces with your selected options. Packaging units are not available here.” Your customer adds the product to the cart through the product configurator’s form, and this form does not know packaging units. Your customer therefore buys single pieces at the regular price there, without package price, discount and packaging image — as if they had chosen Single piece on the product page. Shared stock and closeout apply as usual.

The cart safeguards the combination: if a configurator position carries a packaging unit, its quantity must be a multiple of the unit; otherwise the packaging unit notice appears and the order is blocked. Package price and discount are not applied there, so the price shown for the position is the price charged.

How to fix it: If your customers should buy a product in packaging units, do not assign configurator options to it. If you need both, create a separate product for the configurable version.

All settings

Every setting in the plugin configuration with its default value, in the order shown in the Administration. As of version 6.7.5.

General

SettingDefaultDescription
Enable plugin for this sales channelonWhen disabled, this sales channel shows no packaging units and no shared-stock information and applies no quantity limits. Orders from this channel still deduct from a shared variant stock: the pool is the stock for all sales channels. Other sales channels are unaffected.
Show discount in the order line itemsonShows the discount of a packaging unit below the product name in the administration’s order view, e.g. “−10 % discount (tier discount)”. Prices are not affected.
Minimum order value of a packaging unit refers toEntire cart (including this line)Pro feature. Which goods value must reach the minimum order value set on a packaging unit at the product (shipping costs never count). Example: minimum 50 €, 3 packages for 121.50 € in an otherwise empty cart — orderable with “Entire cart” and “This line only”, blocked with “Rest of the cart”.

Availability notifications

SettingDefaultDescription
Enable notification featureonPro feature. When enabled, customers can leave their email address on out-of-stock packaging units to be notified once the unit becomes available again. The email is stored with consent and is automatically deleted after the notification has been sent; unsent addresses are removed after 90 days.
Check availability and send emailsOnce a dayPro feature. How often the shop checks whether a requested packaging unit is in stock again and sends the email (template “Packaging unit available again” under Settings → Email templates). The email is sent once; the address is deleted afterwards.

Quick order

SettingDefaultDescription
Offer quick orderonPro feature. Logged-in customers find “Quick order” in their account menu: they enter product number, packaging unit and number of packages per line and add everything to the cart at once. Page address: /swp/quick-order. Switch off e.g. in B2C sales channels.

FAQ

Q: Can I use one packaging unit for several products?

A: Yes. You create the unit once under Products → Packaging Units and then assign it to as many products as you like.

Q: Do I need to maintain a separate stock for each packaging size?

A: No. All packaging units of a product draw on the same stock. A customer who buys a carton of 12 uses up 12 pieces of that stock.

Q: Why can’t my customer see a packaging even though it is assigned to the product?

A: Most likely the stock is not sufficient for this packaging. The plugin only shows packaging the stock fully covers. Once enough goods are available, it appears again.

Q: Can I use the plugin in only one of my shops?

A: Yes. Select the sales channel at the top of the configuration and turn Enable plugin for this sales channel on or off there.

Q: What happens to the shared stock when an order is cancelled?

A: The plugin restores the units to the pool — at most up to the Initial stock, if you entered one.

Q: How do I change the order of the packaging units on the product page?

A: Via the Position. Lower numbers appear first. You change the position in the unit itself or directly in the list in the product’s Packaging Units tab.

Q: Do I need the Pro package?

A: No. Packaging units, stock check, shared variant stock and shipping by package weight work without the Pro package. The Pro package is worth it if you need own package prices, discounts, minimum quantities, rules, notifications, the quick order or the CSV import (see Pro package).

Q: What happens to my Pro settings when the Pro package is no longer active?

A: They stay saved but no longer have any effect in the shop. Your customers then pay the regular price, and quick order and notifications disappear. When you unlock the Pro package again, your settings apply again immediately.

Q: Are discount and tier discount added up?

A: No. Once the customer reaches a tier, it replaces the packaging’s discount. Only one of the two ever applies.

Q: Does my customer need a customer account for quick order and notifications?

A: For the quick order, yes — it is only available to logged-in customers. For notifications, the email address is enough.

Q: How long does the shop store the email addresses for notifications?

A: Until the notification is sent, but no longer than 90 days. If the customer does not confirm the sign-up, the shop deletes the address after 48 hours.

Q: Are my packaging units kept if I uninstall the plugin?

A: If you choose to keep the data when uninstalling, all packaging units, assignments and pools are kept.

For Administrators / Technical Details

This section is intended for technical administrators. You do not need it for everyday use.

System requirements

  • Shopware: 6.7
  • PHP: 8.2 or later

Installation via the command line

If the plugin is already present in your shop, you can also install and activate it from the command line:

php bin/console plugin:refresh
php bin/console plugin:install SwpDynamicPackagingUnitsSix --activate
php bin/console cache:clear

Background processing

Syncing the stock of all pool variants is done by Shopware’s background processing (message queue). In the default setup it runs automatically while someone is logged in to the Administration; for live shops Shopware recommends a permanent worker (php bin/console messenger:consume async). Without background processing, the stock of variants that were not ordered stays at the last synced value — the pool, order quantities and the cart check are not affected.

Several app servers and pool bookings

Every booking on a pool (order, cancellation, order edit) briefly locks that pool so that simultaneous orders do not overwrite each other. The lock uses Shopware’s lock store (framework.lock). If your shop runs on several app servers, this store must be shared, for example Redis (LOCK_DSN); the default setting only locks on the respective server.

Scheduled tasks for notifications (Pro package)

The shop sends availability notifications through scheduled tasks: a daily and an hourly check — the setting Check availability and send emails decides per sales channel which one applies — and a daily cleanup that deletes unsent sign-ups after 90 days. Scheduled tasks are queued by scheduled-task:run and executed by the Messenger worker. For live shops, set up both processes permanently (for example with Supervisor or systemd):

php bin/console messenger:consume async
php bin/console scheduled-task:run

If they do not run, sign-ups pile up: the emails are only sent while someone is logged in to the Administration, or not at all.

Data protection (Pro package)

For notifications, the shop stores per sign-up the email address, the product, the packaging unit, the sales channel, the language and — for logged-in customers — the link to the customer account. A sign-up is only possible with explicit consent. The data is deleted after the email has been sent, unsent sign-ups after 90 days. Include the feature in your privacy policy.

Quick order (Pro package)

The quick order page is located at /swp/quick-order and can only be reached by logged-in customers. If the Pro package is not active or the quick order is switched off in the sales channel, the page does not exist.

Removed database column

The former pool field “Single sale” had no effect and was removed. The related database column allow_single_sale is removed automatically during the update; no action needed.

User permissions

Both areas have their own permissions in the role management: Packaging Units and Shared Variant Stock. They define who may view, edit, create or delete units and pools. Only users who may edit packaging units can use the CSV import. Only users who may create shared variant stock can generate pools from a property.

Uninstallation

If you choose to keep the data when uninstalling, packaging units, product assignments and pools are kept and are available again after a reinstallation.


This manual was written for Dynamic Packaging Units version 6.7.5.

How much help do you need?

  • Updates and compatibility: Plugin-Care from €149 per month

    Before every Shopware release we check whether your plugins keep up. You get a written recommendation and install the updates yourself. Cancel monthly.

    See Plugin-Care
  • Setup or customisation: intro call

    Want us to set up the plugin, or are you missing a feature? We sort that out in a free intro call.

    Book an intro call

Something in the plugin not working? Write to us

Need a team that keeps your shop running?

We have been working with Shopware since 2010 and maintain shops including updates, hotfixes and the plugins you are configuring right now.