What is a Location Slug?
A location slug is a unique identifier for each store location in your Treez Ecommerce website. It allows you to create location-specific content that only displays when a customer is shopping from that particular store. Location slugs let multi-store operators tailor content like hero banners, promotions, carousels, and alert messages to individual locations.
Why Use Location Slugs?
Display unique content for each dispensary location
Create location-specific promotions and deals
Show location-specific announcements in alert banners
Tailor your homepage or carousel to each store's offerings
Improve the customer experience by surfacing only relevant content
How to Find Your Location Slug
Navigate to your store locator page (e.g.
https://yourdomain.com/store-locator)Click on the location you want
Look at the URL in your browser
The slug is the part that appears after
/dispensary/
Example: If the URL shows https://www.yourdomain.com/dispensary/cali-collective-demo, then the location slug is cali-collective-demo.
PLEASE NOTE: The Location Slug is generated automatically based on data from your SellTreez system. Specifically, it uses the Business Name entered in:
SellTreez Configurations -> Config Page -> Basic Configurations -> Basic Dispensary Info -> Business Name
⚠️ Page Not Found?
If your location page returns a 404 error, don’t worry — it likely means the page hasn’t been created yet in Prismic.
To resolve this:
Log in to Prismic.
Click “+ Create New Page”.
Select Location Page as the page type.
Add the new location to your repository and publish it.
Once published, the location page should display correctly.
Assigning a Slice to One Location
In any slice that has a Location Slug field, enter the slug for the location this item should appear at. Leave the field blank to show the item to all locations (useful for default/fallback content).
Example: Enter cali-collective-demo to show that item only to customers shopping at that store.
Assigning a Slice Item to Multiple Locations (New)
You can now assign a single slice item to multiple store locations at once — no need to duplicate the item.
In the Location Slug field, enter the slugs as a comma-separated list:
cali-collective-demo, mystic-market
This works at both the slice level (the primary settings) and the item level (the repeatable zone). The item will display for any location whose slug matches one in the list.
Where Location Slugs Can Be Used
Location slug configuration is available on almost every slice in your CMS — if a slice has content you'd want to show differently by location, there's a slug field for it.
When not to use multiple slugs
Avoid comma-separated slugs on a Products Carousel slice that uses a product group configuration. Product group IDs are store-level — each location has its own unique ID — so a single slice item can't reliably serve multiple stores. In this case, continue creating a separate slice item per location.
To learn more about product group-based carousels, click here.
Best Practices
Always create a default item — For each slice, include at least one item with no Location Slug set. This ensures visitors who haven't selected a location still see content.
Use exact slugs — Slugs are case-sensitive. Copy them directly from the URL.
Comma-separated, no extra spaces — When listing multiple slugs, use a comma followed by a space:
slug-one, slug-two.Test every location — After setting up location-specific content, verify each location displays the right content by selecting it on your site.
Think mobile — Check how your location-specific content looks on smaller screens.
