Appearance
Warehouse Stock
Keep stock per warehouse in Shopware: orders take from your warehouses in priority order, the product stock stays the total of your active warehouses, and shoppers see availability per warehouse.
Install · Set up warehouses · Enter stock · Orders · Storefront · Troubleshoot · Developer docs
| Version | 0.4.2 · Pre-release (0.x) |
|---|---|
| Shopware | 6.7 |
| PHP | 8.2+ |
| Plugin name | KmhWarehouseStockSW |
| Composer package | kommandhub/warehouse-stock-sw |
| Licence | Proprietary |
| Get it | ZIP upload, or Composer from the Git repository |
What does it do?
You create your warehouses in the Administration and enter a quantity per warehouse on each product, or import the quantities from your ERP. The plugin then sets Shopware's normal product Stock to the sum of all active warehouses. Everything in Shopware that uses stock — availability, the Available stock value, closeout handling, listing filters — keeps working as before.
When a customer orders, the quantity is taken from your active warehouses in position order: the first warehouse is emptied before the next one is used. When an order is cancelled or a line item is removed, the stock goes back to the warehouses it was taken from.
On the product page, shoppers see a Stock by warehouse list with a quantity or a label (In stock, Low stock, Out of stock) per warehouse.
Who it is for: shops that stock goods in more than one place and want to show where an item is available.
How it fits into Shopware: it uses Shopware's own product stock and order stock handling, the Rule Builder to decide who sees warehouse stock, and the Admin API sync endpoint for ERP imports.
Key features
- Warehouses under Settings → Warehouses: name, code, position and an active switch.
- Warehouse stock card on the product page in the Administration, saved with the product's own Save button.
- Variants: a parent product lists its variants with their totals; Edit opens a variant's quantities per warehouse.
- Product stock follows the warehouses — the stock field becomes read-only while warehouse quantities exist.
- Orders take stock from active warehouses in position order; cancellations put it back where it came from.
- Storefront list of warehouses on the product page, as exact quantities or labels, optionally only for customers matching a rule.
- Product list column Warehouse stock with
CODE: quantityper warehouse. - ERP import through Shopware's standard
/api/_action/syncendpoint — no custom API. - Role permissions for warehouses and warehouse stock.
Requirements
| Shopware | 6.7 only |
| PHP | 8.2 or newer |
| Message queue | A running queue worker — switching a warehouse on or off recalculates its products in the background |
Quick start
- Install and activate (ZIP or Composer from the repository) — Installation.
- Create your warehouses under Settings → Warehouses and set their positions — Warehouses.
- Open a product, enter a quantity per warehouse in the Warehouse stock card and click Save — Stock per product.
- Choose what the product page shows in the plugin configuration — Configuration.
- Place a test order and check that the first warehouse went down — How orders take stock.
Important limitations
- Orders always take stock from the warehouses. This cannot be switched off.
- Returns are not put back into a warehouse. Book returned stock in the Administration or through your import.
- Warehouses have no address, opening hours or sales-channel assignment. Use custom fields if you need more data.
- Stock is kept per variant. A parent product's stock is not a sum of its variants.
- Orders placed while the plugin is deactivated change only the product stock, not the warehouses.
More: FAQ · Troubleshooting.
Documentation
For shop owners and administrators
- Installation — install, activate, permissions, update, uninstall
- Configuration — every setting
- Warehouses · Stock per product · How orders take stock · Storefront availability
- Troubleshooting · FAQ
For developers
- Architecture & reference — data model, stock recalculation, order allocation, ERP import, endpoints, Administration, testing
- Changelog
Shopware resources
- Products · Rule Builder · Orders · Users & permissions · Integrations
- Developers: Message queue · Stock