- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
location
The location object represents a physical store location, such as a branch or pickup point. Loop over locations on the store locator template to output each store's details.
{% for location in locations %}
{{ location.name }}
{% endfor %}
The location object has the following attributes:
location.name
Returns the name of the store location.
location.address1
Returns the first address line of the store location.
location.address2
Returns the second address line of the store location.
location.city
Returns the city of the store location.
location.province
Returns the province or state of the store location.
location.country
Returns the country of the store location.
location.zip
Returns the postal or zip code of the store location.
location.phone
Returns the phone number of the store location.
location.email
Returns the email address of the store location.
location.formatted
Returns the full address of the store location as a single formatted string. This is convenient for building a map link.
<a href="https://www.google.com/maps?q={{ location.formatted }}">Navigate</a>