shop

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.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