Configuring Warehouse Management in 1C-Bitrix
Without warehouse management, an e-commerce store on Bitrix operates in "just a showcase" mode — stock is not tracked, reservation doesn't work, managers don't know if goods exist physically. Warehouse management setup includes the catalog module in stock management and links it to the sale module via reservation mechanism.
Enabling Warehouse Management
Shop → Catalog → Settings → "Warehouse" Tab:
- Use warehouses — enable
- Warehouse operation mode — "Warehouse" (track by warehouses) or "Without warehouse" (common stock)
- Auto-reserve on order — recommended to enable
- Remove reserve on order cancellation — enable
Stock data stored in b_catalog_store_product table (stock by warehouses) and b_catalog_product (field QUANTITY — total stock when working without warehouses).
Creating Warehouses
Shop → Catalog → Warehouses → Add Warehouse:
Each warehouse has fields: name, XML_ID (for 1C synchronization), address, contacts, activity. XML_ID critical on 1C exchange — used for warehouse matching on stock import.
Creating warehouse programmatically:
\Bitrix\Catalog\StoreTable::add([
'TITLE' => 'Main Warehouse',
'XML_ID' => 'STORE_MAIN',
'ADDRESS' => 'Warehouse St., 1',
'ACTIVE' => 'Y',
'SORT' => 100,
]);
Stock and Reserves
Difference between stock and available quantity:
- QUANTITY — physical stock
- QUANTITY_RESERVED — reserved under orders
- Available = QUANTITY − QUANTITY_RESERVED
On order placement Bitrix automatically creates reserve in b_sale_order_reserve table. Reserve removal on order cancellation or when moving to "shipped" status (depends on settings).
Threshold and Restriction Setup
In product card (module catalog), "Trade Catalog" tab:
- Allow purchase of negative quantity — for on-demand products only
- Don't track quantity — for services and intangible items
- Quantity step and Minimum quantity — for wholesale items
Execution Timeline
Basic warehouse management setup with one warehouse — 2–4 hours. Multi-warehouse setup with shipment rules — separate task, takes 4–8 hours.







