For OpenCart 2.3, 3.0, 4.0 and 4.1
Warehouses
- Add warehouses with a name, a short code and a priority. A warehouse can be switched off (it is then not counted in the shop quantity) and deleted when it holds no stock.
- On first install one "Main warehouse" is created that holds today's shop quantity of every product, so nothing changes until you add more warehouses.
Stock by warehouse
- A grid of products with one quantity box per warehouse, searchable by name, model or product ID, with paging. Saving a row sets the figures and the shop quantity becomes the total of the active warehouses.
- Products that have no warehouse figures yet (for example new products) are marked "not managed" and left to the shop's own quantity until you save their row.
- Transfer stock from one warehouse to another: it checks the source really holds the units, takes them in a way two transfers cannot take the same units, and logs both sides with a note.
Orders
- When an order reaches a status in which the shop holds stock back (your processing and complete statuses), each line is taken from the active warehouse with the lowest priority number first, then the next, splitting a line across warehouses when needed. The shop quantity is set to the new total.
- When the order is cancelled or moves to a status that does not hold stock, the units go back to the same warehouses. An order is never allocated twice and never returned twice.
- If the warehouses hold less than was ordered, they are emptied, the shortfall is logged, and only what was really taken is given back on cancellation.
- Products that are set not to subtract stock are left alone, and so are products that are not managed.
For the store owner
- One admin page: settings, warehouses, the stock grid, transfers, a low stock list (rows at or below a limit you set, switched-off warehouses left out) and the latest 100 movements (adjustments, transfers, orders, returns and shortfalls).
- Optional: show "Available at Main warehouse (12), North depot (3)" on the product page; warehouses with no units are left out and a fully empty product says "Out of stock".
- Every storefront text is in one language file you can copy and translate. No core files are edited. Checked with the default theme and the Aurora theme.
Notes
- Stock is kept per product. Stock of product options (size, colour) stays with the shop and is not split by warehouse.
- Warehouses do not choose by the customer's address: orders always follow your priority order.
- Warehouses, stock figures and the movement log are kept if you uninstall the module, and the shop quantity then stays at the last total; settings and event hooks are removed.