The shop object

The shop object has the following attributes:

shop.address

You can add attributes to shop.address to return information about a shop's address.

shop.address.summary

Returns a summary of the shop's address:

150 Elgin Street, Ottawa, Ontario, Canada

The summary takes the form street, city, state/province, country.

shop.address.street

Returns the shop's street address:

150 Elgin Street

shop.address.city

Returns the city in the shop's address:

Ottawa

shop.address.province

Returns the state or province in the shop's address:

Ontario

shop.address.province_code

Returns an abbreviated form of the state or province in the shop's address:

ON

shop.address.country

Returns the country in the shop's address:

Canada

shop.address.country_upper

Returns the country in the shop's address using uppercase letters:

CANADA

The result is identical to using the upcase filter on shop.address.country.

shop.address.zip

Returns the ZIP or postal code in the shop's address:

K2P 1L4

shop.collections_count

Returns the number of collections in a shop.

shop.currency

Returns the shop's currency in three-letter format (ex: USD).

shop.description

Returns the description of the shop.

shop.domain

Returns the primary domain of the shop.

shop.email

Returns the shop's email address.

shop.enabled_payment_types

Returns an array of accepted credit cards for the shop. Use the payment_type_img_url filter to link to the SVG image file of the credit card.

The available values for this array are:

  • visa
  • master
  • american_express
  • paypal
  • jcb
  • diners_club
  • maestro
  • discover
  • dankort
  • forbrugsforeningen
  • dwolla
  • bitcoin
  • dogecoin
  • litecoin

shop.metafields

Returns the shop's metafields. Metafields can only be set using the Shopify API .

shop.money_format

Returns a string that is used by Shopify to format money without showing the currency.

shop.money_with_currency_format

Returns a string that is used by Shopify to format money while also displaying the currency.

shop.name

Returns the shop's name.

shop.policies

Returns an array of your store's refund policy, privacy policy, and terms of service. You can set these policies in your store's Checkout settings.

You can print an individual policy by using one of the named methods below, or you can loop through and print all policies using shop.policies:

Input

{% for policy in shop.policies %}
  {{ policy.body }}
{% endfor %}

Output

PRIVACY STATEMENT ---- SECTION 1 - WHAT DO WE DO WITH YOUR INFORMATION? When you purchase something from our store...

shop.refund_policy

Returns your store's refund policy, which you can set in your store's Checkout settings.

Input

{{ shop.refund_policy }}

Output

Returns
Our policy lasts 30 days. If 30 days have gone by since your purchase, unfortunately we can’t offer you a refund or exchange...

shop.privacy_policy

Returns your store's privacy policy, which you can set in your store's Checkout settings.

Input

{{ shop.privacy_policy }}

Output

PRIVACY STATEMENT

----

SECTION 1 - WHAT DO WE DO WITH YOUR INFORMATION?

When you purchase something from our store...

shop.terms_of_service

Returns your store's terms of service (TOS), which you can set in your store's Checkout settings.

Input

{{ shop.terms_of_service }}

Output

TERMS OF SERVICE

-----

OVERVIEW

This website is operated by...

shop.password_message

Returns the shop's password page message.

shop.permanent_domain

Returns the .myshopify.com URL of a shop.

shop.products_count

Returns the number of products in a shop.

shop.types

Returns an array of all unique product types in a shop.

{% for product_type in shop.types %}
  {{ product_type | link_to_type }}
{% endfor %}

shop.url

Returns the full URL of a shop.

Input

{{ shop.url }}

Output

http://johns-apparel.com

shop.secure_url

Returns the full URL of a shop prepended by the https protocol.

Input

{{ shop.secure_url }}

Output

https://johns-apparel.com

shop.vendors

Returns an array of all unique vendors in a shop.

{% for product_vendor in shop.vendors %}
  {{ product_vendor | link_to_vendor }}
{% endfor %}

shop.locale

Returns the locale that the shop is currently displayed in (ex: en, fr, pt-BR). See the documentation on theme translations for more details on this feature.

Want to discuss this page?

Visit the Shopify Community