Aniket Suryavanshi
Aniket Suryavanshi

Reputation: 1584

How can I access the store address in a Shopify theme file (.liquid extension file)?

I have set store address for a Shopify site, as seen in the screenshot below. Now I want to access this address in a theme file (.liquid file). How can I do this?

Shopify Store address in General settings

Upvotes: 2

Views: 1275

Answers (2)

Sankalpa Senevirathne
Sankalpa Senevirathne

Reputation: 125

Now you can get the shop's address accessing 'shop' liquid object.

Ex: {{ shop.address.summary }}

Please refer the shopify official cheat sheet for more info. Check the shop object in there.

Upvotes: 1

alexandresaiz
alexandresaiz

Reputation: 2766

You cannot access those attributes. The shop object gives you the following attributes but the store address is not available yet.

shop.collections_count
shop.currency
shop.description
shop.domain
shop.email
shop.enabled_payment_types
shop.metafields
shop.money_format
shop.money_with_currency_format
shop.name
shop.password_message
shop.permanent_domain
shop.products_count
shop.types
shop.url
shop.vendors
shop.locale

Upvotes: 2

Related Questions