Skip to main content

shop

Information about the store, such as the store address, the total number of products, and various settings.

Properties

Anchor to
accepts_gift_cards

Returns true if the store accepts gift cards. Returns false if not.

The address of the store.

The brand assets for the store.

Anchor to
collections_count

The number of collections in the store.

The currency of the store.

Anchor to
customer_accounts_enabled

Returns true if customer accounts are required to complete checkout. Returns false if not.

Anchor to
customer_accounts_optional

Returns true if customer accounts are optional to complete checkout. Returns false if not.

Anchor to
description

The description of the store.

The primary domain of the store.

The sender email of the store.

Anchor to
enabled_currencies
array of currency

The currencies that the store accepts.

Tip

You can get the store's currency with shop.currency.

Anchor to
enabled_payment_types
array of string

The accepted payment types on the store.

The payment types are based on the store's enabled payment providers and the customer's current region and currency.

Tip

You can output an svg logo for each payment type with the payment_type_svg_tag filter. Alternatively, you can get the source URL for each svg with the payment_type_img_url filter.

The ID of the store.

Anchor to
metafields

The metafields applied to the store.

Tip

To learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.

Anchor to
money_format

The money format of the store.

Anchor to
money_with_currency_format

The money format of the store with the currency included.

The name of the store.

Anchor to
password_message

The password page message of the store.

Anchor to
permanent_domain

The .myshopify.com domain of the store.

The phone number of the store.

Anchor to
policies
array of policy

The policies for the store.

The policies are set in the store's Policies settings.

Example
Output the policies
<ul>
{%- for policy in shop.policies %}
<li>{{ policy.title }}</li>
{%- endfor %}
</ul>

Output

<ul>
<li>Refund policy</li>
<li>Privacy policy</li>
<li>Terms of service</li>
<li>Shipping policy</li>
</ul>
Anchor to
privacy_policy

The privacy policy for the store.

Anchor to
products_count

The number of products in the store.

Anchor to
published_locales
array of shop_locale

The locales (languages) that are published on the store.

Anchor to
refund_policy

The refund policy for the store.

The full URL of the store, with an https protocol.

Anchor to
shipping_policy

The shipping policy for the store.

Anchor to
subscription_policy

The subscription policy for the store.

Anchor to
terms_of_service

The terms of service for the store.

Anchor to
types
array of string

All of the product types in the store.

Example
Output the product types
{% for type in shop.types %}
{{- type | link_to_type }}
{% endfor %}

Output

Unknown Type

<a href="/collections/types?q=Animals%20%26%20Pet%20Supplies" title="Animals &amp; Pet Supplies">Animals & Pet Supplies</a>

<a href="/collections/types?q=Baking%20Flavors%20%26%20Extracts" title="Baking Flavors &amp; Extracts">Baking Flavors & Extracts</a>

<a href="/collections/types?q=Container" title="Container">Container</a>

<a href="/collections/types?q=Cooking%20%26%20Baking%20Ingredients" title="Cooking &amp; Baking Ingredients">Cooking & Baking Ingredients</a>

<a href="/collections/types?q=Dried%20Flowers" title="Dried Flowers">Dried Flowers</a>

<a href="/collections/types?q=Fruits%20%26%20Vegetables" title="Fruits &amp; Vegetables">Fruits & Vegetables</a>

<a href="/collections/types?q=Gift%20Cards" title="Gift Cards">Gift Cards</a>

<a href="/collections/types?q=Health" title="Health">Health</a>

<a href="/collections/types?q=Health%20%26%20Beauty" title="Health &amp; Beauty">Health & Beauty</a>

<a href="/collections/types?q=Invisibility" title="Invisibility">Invisibility</a>

<a href="/collections/types?q=Love" title="Love">Love</a>

<a href="/collections/types?q=Music%20%26%20Sound%20Recordings" title="Music &amp; Sound Recordings">Music & Sound Recordings</a>

<a href="/collections/types?q=Seasonings%20%26%20Spices" title="Seasonings &amp; Spices">Seasonings & Spices</a>

<a href="/collections/types?q=Water" title="Water">Water</a>

The full URL of the store.

Anchor to
vendors
array of string

All of the product vendors for the store.

Example
Output the vendors
{% for vendor in shop.vendors %}
{{- vendor | link_to_vendor }}
{% endfor %}

Output

<a href="/collections/vendors?q=Clover%27s%20Apothecary" title="Clover&#39;s Apothecary">Clover's Apothecary</a>

<a href="/collections/vendors?q=Polina%27s%20Potent%20Potions" title="Polina&#39;s Potent Potions">Polina's Potent Potions</a>

<a href="/collections/vendors?q=Ted%27s%20Apothecary%20Supply" title="Ted&#39;s Apothecary Supply">Ted's Apothecary Supply</a>

Deprecated Properties

Anchor to
enabled_locales
array of shop_locale
Deprecated

The locales (languages) that are published on the store.

Deprecated

Deprecated because the name didn't make it clear that the returned locales were published.

The shop.enabled_locales property has been replaced by shop.published_locales.

Anchor to
locale
Deprecated

The currently active locale (language).

Deprecated

Deprecated because this value is contextual to the request and not a property of the shop resource.

The shop.locale property has been replaced by request.locale.

Anchor to
metaobjects
Deprecated

All of the metaobjects of the store.

Deprecated

The shop.metaobjects property has been replaced by metaobjects.

Anchor to
taxes_included
Deprecated

Returns true if prices include taxes. Returns false if not.

Deprecated

Deprecated because whether or not prices have taxes included is dependent on the customer's country.

The shop.taxes_included property has been replaced by cart.taxes_included.

{
"accepts_gift_cards": true,
"address": {},
"brand": {},
"collections_count": 7,
"currency": "CAD",
"customer_accounts_enabled": true,
"customer_accounts_optional": true,
"description": "Canada's foremost retailer for potions and potion accessories. Try one of our award-winning artisanal potions, or find the supplies to make your own!",
"domain": "polinas-potent-potions.myshopify.com",
"email": "polinas.potent.potions@gmail.com",
"enabled_currencies": [],
"enabled_locales": [],
"enabled_payment_types": [
"american_express",
"apple_pay",
"diners_club",
"discover",
"google_pay",
"master",
"paypal",
"shopify_pay",
"visa"
],
"id": 56174706753,
"locale": "en",
"metafields": {},
"metaobjects": {},
"money_format": "${{amount}}",
"money_with_currency_format": "${{amount}} CAD",
"name": "Polina&#39;s Potent Potions",
"password_message": "Our store will be opening when the moon is in the seventh house!!",
"permanent_domain": "polinas-potent-potions.myshopify.com",
"phone": "416-123-1234",
"policies": [],
"privacy_policy": {},
"products_count": 19,
"published_locales": [],
"refund_policy": {},
"secure_url": "https://polinas-potent-potions.myshopify.com",
"shipping_policy": {},
"subscription_policy": null,
"taxes_included": false,
"terms_of_service": {},
"types": [
"",
"Animals & Pet Supplies",
"Baking Flavors & Extracts",
"Container",
"Cooking & Baking Ingredients",
"Dried Flowers",
"Fruits & Vegetables",
"Gift Cards",
"Health",
"Health & Beauty",
"Invisibility",
"Love",
"Music & Sound Recordings",
"Seasonings & Spices",
"Water"
],
"url": "https://polinas-potent-potions.myshopify.com",
"vendors": [
"Clover's Apothecary",
"Polina's Potent Potions",
"Ted's Apothecary Supply"
]
}
Was this section helpful?