Reputation: 1584
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?
Upvotes: 2
Views: 1275
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
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