store-locator.liquid

The store-locator.liquid template renders the shop's store locations and pickup points. It is loaded when a visitor goes to the /store-locator URL.

Loop through the locations array to output each store. Every item is a location object with attributes such as location.name, location.phone, location.email and its address fields. More info ›

{% for location in locations %}
  <strong>{{ location.name }}</strong>
  {% if location.phone %}
    <a href="tel:{{ location.phone }}">{{ location.phone }}</a>
  {% endif %}
  <address>
    {{ location.address1 }}<br>
    {{ location.city }}, {{ location.zip }}<br>
    {{ location.province }}, {{ location.country }}
  </address>
{% endfor %}
			

location.formatted

Returns the full address as a single string. It is useful for building a link to a map service so visitors can navigate to the store.

<a href="https://www.google.com/maps?q={{ location.formatted }}" target="_blank">
  {{ 'general.store_locator.navigate' | t }}
</a>
			

When the shop has no locations, show a fallback message instead of an empty list.

{% if locations.size > 0 %}
  <!-- render locations -->
{% else %}
  <p>{{ 'general.store_locator.location_not_found' | t }}</p>
{% endif %}
			
icon-accounticon-add-newicon-add-storeicon-appicon-appleicon-archiveicon-arrowdownicon-ascicon-bookicon-cancelicon-cart-addonicon-checkouticon-cherryicon-collectionicon-comfirmicon-confirmicon-couponicon-creditsicon-currencyicon-dashboardicon-discounticon-disintegrateicon-domainicon-dscicon-duplicateicon-editicon-emailicon-exclamation-triangleicon-exporticon-eyeicon-eye-slashicon-fullscreenicon-fullscreen-closeicon-generalicon-gifticon-gridicon-hddicon-helpicon-importicon-infoicon-integrationicon-invoiceicon-likeicon-listicon-locationicon-logouticon-new-tabicon-not-secureicon-optionicon-ordericon-outline-arrowdownicon-pageicon-paymenticon-plusicon-posicon-pricingicon-printericon-producticon-product-sumicon-product-sum-xicon-redirecticon-reporticon-reseticon-searchicon-secureicon-settingicon-shippingicon-staricon-storeicon-switch-storeicon-tagicon-taxesicon-templateicon-themeicon-tickicon-trashicon-unarchiveicon-uploadicon-user-tagicon-usersicon-weighticon-wholesale