Skip to main content
Site Store Pro’s inventory system supports multi-location stock tracking per variant — combining shelf stock, primary warehouse stock (tagged via a Primary Warehouse Location selector), and location-dependent child warehouse inventory levels into a calculated total. You can update stock in bulk via CSV import at /admin/ecommerce/inventory, or push real-time updates from any external WMS or ERP using the POST /webhooks/inventory-update webhook API. Multi-warehouse fulfillment and facility locations are managed through the Warehouse Locations panel in the Shipping Console (/admin/ecommerce/shipping?tab=warehouses).

Inventory Page

The main inventory management interface is at GET /admin/ecommerce/inventory (paginated 25 items per page). From this page you can view all variants’ stock levels across locations, edit individual records, run bulk CSV imports, and navigate directly to manage warehouse locations.

Warehouse Stock Calculations & Primary Location Selector

Site Store Pro uses a multi-warehouse stock tracking model per variant:
Mutual Exclusion Rule: The Primary Warehouse Facility selector and Child Warehouse Location stock lines are mutually exclusive. Once a facility is assigned as Primary (location_id), it is excluded from selection in child warehouse lines, preventing duplicate warehouse counting.

Calculation Toggle

An admin checkbox (use_warehouse_stock = 1) on each inventory record controls which formula is used:
Shelf stock, main warehouse stock, and all assigned child warehouse inventory levels are summed, then reserved quantities are deducted.

Real-Time Calculator & Child Builder

A dynamic totals preview is displayed on the product variant inventory edit panel. As you adjust Available Stock, Main Warehouse Stock, Reserved Stock, or add/modify Warehouse Location Stock Lines, the calculated Total Available Calculated Stock updates in real time — before clicking Save. A direct link to Manage Warehouses & Fulfillment Locations (/admin/ecommerce/shipping?tab=warehouses) is included directly inside the variant inventory section.

Bulk CSV Import

Update large numbers of SKUs at once using the CSV import tool built directly into the Stock Control panel at /admin/ecommerce/inventory.

File Format

Files may be comma-separated or pipe-separated:
Example rows:

Field Mappings

The import auto-matches by SKU. Any row whose SKU does not match an existing variant is skipped and logged in the import report.

Automated Inventory Webhook API

For real-time inventory sync from external WMS, ERP, or fulfillment systems, Site Store Pro provides a dedicated webhook endpoint that supports both primary and location-dependent warehouse updates.

Endpoint

CSRF verification is bypassed automatically for this endpoint — no CSRF token is required in webhook payloads.

Authentication

The request must include one of the following credentials, all matching the INVENTORY_WEBHOOK_SECRET environment variable:

Request Payload

Response

A successful call returns the JSON representation of the updated inventory record including assigned warehouse child stocks and the newly calculated inventory total.

Multi-Warehouse Locations Architecture

Database Schema

The warehouse_locations table stores facility details, while product_inventory_warehouses links specific stock levels to inventory records:

Fulfillment Origin & Available Stock Resolution

At checkout and storefront product views, Site Store Pro resolves available stock via:
1

Region Match

Checks for an active warehouse whose state_code and/or country_code matches the buyer’s shipping address.
2

Calculated Total Fallback

If no regional match is found, sums available shelf stock, main warehouse stock, and child warehouse stock levels (minus reserved stock) to determine total available inventory.
3

Order Deduction

At point of order confirmation, stock is decremented from the designated warehouse location closest to the buyer.

Warehouse Locations Admin Panel

Warehouse location management is available in the Warehouse Locations sub-panel inside the Shipping Console: /admin/ecommerce/shipping?tab=warehouses Full CRUD operations are supported:

Add Location

Create a new fulfillment warehouse with name, code, address, region codes, and ShipStation carrier ID

Edit Location

Update any field on an existing warehouse, including activating or deactivating it

Delete Location

Remove a warehouse location (ensure all inventory records are reassigned first)
Deleting a warehouse location that still has associated child inventory records will cascade and remove child inventory entries for that location. Reassign or zero-out location stock levels before deletion.