--- layout: default title: shop nav: group: Liquid Variables --- # shop The shop object has the following attributes: {% table_of_contents %} {% anchor_link "shop.collections_count", "shop-collections_count" %}

Returns the number of collections in a shop.

{% anchor_link "shop.currency", "shop-currency" %}

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

{% anchor_link "shop.description", "shop-description" %}

Returns the description of the shop.

{% anchor_link "shop.domain", "shop-domain" %}

Returns the primary domain of the shop.

{% anchor_link "shop.email", "shop-email" %}

Returns the shop's email address.

{% anchor_link "shop.enabled_payment_types", "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 - google_wallet - discover - solo - switch - laser - dankort - forbrugsforeningen - dwolla - bitcoin {% anchor_link "shop.metafields", "shop-metafields" %}

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

{% anchor_link "shop.money_format", "shop-money_format" %}

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

{% anchor_link "shop.money_with_currency", "shop-money_with_currency" %}

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

{% anchor_link "shop.name", "shop-name" %}

Returns the shop's name.

{% anchor_link "shop.permanent_domain", "shop-permanent_domain" %}

Returns the .myshopify.com URL of a shop.

{% anchor_link "shop.products_count", "shop-products_count" %}

Returns the number of products in a shop.

{% anchor_link "shop.types", "shop-types" %}

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

{% highlight html %}{% raw %} {% for product_type in shop.types %} {{ product_type | link_to_type }} {% endfor %} {% endraw %}{% endhighlight %} {% anchor_link "shop.url", "shop-url" %}

Returns the full URL of a shop.

Input

{% highlight html %}{% raw %} {{ shop.url }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} http://johns-apparel.com {% endraw %}{% endhighlight %}
{% anchor_link "shop.vendors", "shop-vendors" %}

Returns an array of all unique vendors in a shop.

{% highlight html %}{% raw %} {% for product_vendor in shop.vendors %} {{ product_vendor | link_to_vendor }} {% endfor %} {% endraw %}{% endhighlight %}