The Locations tab is where you create and manage all warehouse locations used by StockTrack. Before you can assign local stock or track inventory across warehouses, you need to set up your location structure here.
You can find it under:
WooCommerce → StockTrack → Locations

What the Locations Tab Does
The Locations tab lets you:
- Create parent warehouse locations
- Generate sub-locations such as areas, rows, or shelves
- Edit or copy existing locations
- Delete sample or unused locations
- View your full location tree, including auto-generated codes
Locations are the foundation of your stock management, because every local stock value must belong to a specific warehouse or sub-location.
Creating a Parent Location
To add your first warehouse, click Add Location.
You can enter:
- Name
The full name of the warehouse (for example “Los Angeles Warehouse”). - Prefix
A short code used to build the location code (for example “LAW”). - Country and City
Used for clarity and code generation. - Area and Shelf/Row (optional)
These are usually left blank for parent locations. - Notes
Optional comments about the location.
When saved, StockTrack generates a structured location code based on the values you entered.

Generating Sub-Locations
Most warehouses have structured layouts. To help you build this quickly, StockTrack includes a sub-location generator.
Inside the Add Location form:
- Open the Generate Sub-Locations section.
- Choose prefixes for Area and Shelf/Row.
- Set a range for the Shelf/Row (for example 1–20).
- Enable Create as individual sub-locations.
- Save the parent location.
StockTrack will create all sub-locations automatically, each with its own unique code.
This saves time when setting up large warehouses or structured storage systems.
Viewing and Managing Locations
After adding your locations, you will see them listed in a table below.
The table shows:
- Parent locations
- Sub-locations nested underneath
- Generated location codes
- Action buttons for Edit, Copy, and Delete
Parent locations have an arrow icon that allows you to expand or collapse their sub-locations. This makes large location structures easier to navigate.

Editing and Copying Locations
- Edit lets you update the name, prefix, address fields, and notes.
- Copy creates a duplicate of the selected location. This is useful when adding similar warehouses or repeating similar structures.
If you edit a parent location, all sub-locations remain connected to it unless you manually change them.
Deleting Sample or Unused Locations
StockTrack may include a few example locations after activation (such as LA, NY, or London). You can safely delete these at any time.
Deleting a location does not delete products. It only removes the location itself.
If a deleted location was assigned to products, those products will show their stock as “Unassigned” until you assign them to a new location.
Best Practices
For a smooth setup:
- Create all parent locations first
- Use the sub-location generator if your warehouse has a structured layout
- Keep prefixes short and consistent
- Avoid editing prefixes after stock has been assigned, to keep codes consistent
- Remove any sample locations you do not plan to use