shop
Information about the store, such as the store address, the total number of products, and various settings.
Properties
Returns
true
if the store accepts gift cards. Returnsfalse
if not.The brand assets for the store.
Returns
true
if customer accounts are required to complete checkout. Returnsfalse
if not.Returns
true
if customer accounts are optional to complete checkout. Returnsfalse
if not.The description of the store.
The sender email of the store.
The currencies that the store accepts.
TipYou can get the store's currency with
shop.currency
.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.
- metafields
The metafields applied to the store.
TipTo learn about how to create metafields, refer to Create and manage metafields or visit the Shopify Help Center.
The money format of the store with the currency included.
The policies for the store.
The policies are set in the store's Policies settings.
ExampleOutput the policies<ul>{%- for policy in shop.policies %}<li>{{ policy.title }}</li>{%- endfor %}</ul><ul> {%- for policy in shop.policies %} <li>{{ policy.title }}</li> {%- endfor %} </ul>
{ "shop": { "policies": [ "<p>We have a 30-day return policy, which means you have 30 days after receiving your item to request a return. ...</p>", "<p>This Privacy Policy describes how polinas-potent-potions.myshopify.com (the “Site” or “we”) collects, uses, and discloses your Personal Information when you visit or make a purchase from the Site. ...</p>", "<strong>OVERVIEW</strong> <br> This website is operated by Polina's Potent Potions. Throughout the site, the terms “we”, “us” and “our” refer to Polina's Potent Potions. ...", "<meta charset=\"utf-8\">\n<p data-mce-fragment=\"1\">All orders are processed within X to X business days (excluding weekends and holidays) after receiving your order confirmation email. You will receive another notification when your order has shipped. ... </p>\n<h3 data-mce-fragment=\"1\"></h3>" ] } }
Output
<ul><li>Refund policy</li><li>Privacy policy</li><li>Terms of service</li><li>Shipping policy</li></ul>- published_
locales array of shop_locale The locales (languages) that are published on the store.
All of the product types in the store.
ExampleOutput the product types{% for type in shop.types %}{{- type | link_to_type }}{% endfor %}{% for type in shop.types %} {{- type | link_to_type }} {% endfor %}
{ "shop": { "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" ] } }
Output
Unknown Type<a href="/collections/types?q=Animals%20%26%20Pet%20Supplies" title="Animals & Pet Supplies">Animals & Pet Supplies</a><a href="/collections/types?q=Baking%20Flavors%20%26%20Extracts" title="Baking Flavors & 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 & 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 & 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 & 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 & Sound Recordings">Music & Sound Recordings</a><a href="/collections/types?q=Seasonings%20%26%20Spices" title="Seasonings & Spices">Seasonings & Spices</a><a href="/collections/types?q=Water" title="Water">Water</a>All of the product vendors for the store.
ExampleOutput the vendors{% for vendor in shop.vendors %}{{- vendor | link_to_vendor }}{% endfor %}{% for vendor in shop.vendors %} {{- vendor | link_to_vendor }} {% endfor %}
{ "shop": { "vendors": [ "Clover's Apothecary", "Polina's Potent Potions", "Ted's Apothecary Supply" ] } }
Output
<a href="/collections/vendors?q=Clover%27s%20Apothecary" title="Clover's Apothecary">Clover's Apothecary</a><a href="/collections/vendors?q=Polina%27s%20Potent%20Potions" title="Polina's Potent Potions">Polina's Potent Potions</a><a href="/collections/vendors?q=Ted%27s%20Apothecary%20Supply" title="Ted's Apothecary Supply">Ted's Apothecary Supply</a>
Deprecated Properties
- enabled_
locales array of shop_localeDeprecated The locales (languages) that are published on the store.
- localeDeprecated
The currently active locale (language).
DeprecatedDeprecated 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.- metaobjectsDeprecated
All of the metaobjects of the store.
DeprecatedThe
shop.metaobjects
property has been replaced bymetaobjects
.Returns
true
if prices include taxes. Returnsfalse
if not.DeprecatedDeprecated because whether or not prices have taxes included is dependent on the customer's country.
The
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'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"
]
}