What is a Location Slug?
A location slug is a unique identifier for each store location in your Treez Ecommerce website. This identifier allows you to create location-specific content that will only display when customers are shopping from that particular store location. Location slugs enable multi-store operators to tailor their website content (like hero banners, promotions, and alert messages) to specific store locations.
Why Use Location Slugs?
Location slugs offer several benefits for multi-store operators:
Display unique content for each of your dispensary locations
Create location-specific promotions and deals
Show location-specific announcements in alert banners
Tailor your homepage experience to each store's unique offerings
Improve user experience by showing only relevant information
How to Find Your Location Slug
To find a location slug for your store:
Navigate to your store locator page (example:
https://yourdomain.com/store-locator
)Click on the location you want to find the slug for
Look at your browser's URL bar
The location slug is the part of the URL 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.
Location Slugs in Different Prismic Slices
The location slug field can be found in various Prismic slices, including:
Hero banners (Banner and Carousel variations)
Alert banners
Feature text slices
Promotional content
And more
Best Practices for Location Slugs
Always create default content: For each location-specific element, create a default version with no location slug specified. This ensures visitors who haven't selected a location yet will still see appropriate content.
Use consistent naming: Make sure you're using the exact location slug as shown in the URL - these are case-sensitive.
Test all locations: After setting up location-specific content, test your website by selecting each location to ensure the correct content displays.
Consider mobile users: Remember that many users will browse on mobile devices, so ensure your location-specific content looks good on all screen sizes.
If you're not seeing the location slug field in a particular slice and need location-specific functionality, please contact Treez Support for to submit a Feature Request.
By leveraging location slugs effectively, you can create a tailored shopping experience for each of your store locations, helping to increase engagement and conversions.