# Shop

The Liquid `shop` object and its properties, with examples.

The `shop` object has the following attributes:

## shop.address

Add attributes to `shop.address` to get information about the shop's address.

## shop.address.city

Returns the city of the shop's address:

```liquid
{{ shop.address.city }}
```

```text
Hannover
```

## shop.address.company

Returns the legal name of the company in the shop's address.

## shop.address.country

Returns the country of the shop's address:

```liquid
{{ shop.address.country }}
```

```text
Germany
```

## shop.address.country_upper

Returns the country of the shop's address in uppercase:

```liquid
{{ shop.address.country_upper }}
```

```text
GERMANY
```

The result is the same as applying the [upcase filter](https://developer.versacommerce.de/articles/liquid-filters-string-filters#upcase) to `shop.address.country`.

## shop.address.province

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

```liquid
{{ shop.address.province }}
```

```text
Lower Saxony
```

## shop.address.province_code

Returns the short form of the state or province of the shop's address:

```liquid
{{ shop.address.province_code }}
```

```text
NI
```

## shop.address.street

Returns the street of the shop's address:

```liquid
{{ shop.address.street }}
```

```text
1 Example Street
```

## shop.address.summary

Returns a summary of the shop's address:

```liquid
{{ shop.address.summary }}
```

```text
1 Example Street, Hannover, Lower Saxony, Germany
```

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

## shop.address.zip

Returns the postal code of the shop's address:

```liquid
{{ shop.address.zip }}
```

```text
30159
```

## shop.checkout.guest_login

Returns `true` if customer accounts are optional to complete a checkout and there is a `?checkout_url` parameter in the URL. Otherwise returns `false`.

A `checkout_url` parameter is created when a visitor reaches the account login page through a link in the checkout.

```text
https://example-shop.versacommerce.de/account/login?checkout_url=https%3A%2F%2Fexample-shop.versacommerce.de%2Fcheckout%3Fstep%3Dcontact_information
```

## shop.collections_count

Returns the number of collections in the shop.

## shop.currency

Returns the shop's currency in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format, for example EUR. This is the currency used in your VersaCommerce admin, including your reports.

If your shop does not use multiple currencies, the shop currency is the same as the customer's local (presentment) currency. If your shop uses multiple currencies, the shop currency can differ from the customer's currency.

- For the cart currency, see [cart.currency](https://developer.versacommerce.de/articles/liquid-objects-cart#cart-currency).
- For the checkout currency, see [checkout.currency](https://developer.versacommerce.de/articles/liquid-objects-checkout#checkout-currency).
- For the list of currencies the shop accepts, see [shop.enabled_currencies](#shop-enabledcurrencies).

## shop.customer_accounts_enabled

Returns `true` if a customer account is required to complete a checkout. Otherwise returns `false`.

## shop.customer_accounts_optional

Returns `true` if a customer account is optional to complete a checkout. Otherwise returns `false`.

## shop.description

Returns the description of the shop.

## shop.domain

Returns the primary domain of the shop.

## shop.email

Returns the email address of the shop.

## shop.enabled_currencies

Returns the list of [currency objects](https://developer.versacommerce.de/articles/liquid-objects-currency) the shop accepts.

- For the cart currency, see [cart.currency](https://developer.versacommerce.de/articles/liquid-objects-cart#cart-currency).
- For the checkout currency, see [checkout.currency](https://developer.versacommerce.de/articles/liquid-objects-checkout#checkout-currency).
- For the shop currency, see [shop.currency](#shop-currency).

## shop.enabled_payment_types

Returns an array of the credit cards and other payment types the shop accepts. The list is based on the payment providers enabled in your shop and on what is supported for the current customer's region and currency.

To show a payment type logo as inline SVG, use the [payment_type_svg_tag](https://developer.versacommerce.de/articles/liquid-filters-html-filters#paymenttypesvgtag) filter. To link to the SVG image instead, use the [payment_type_img_url](https://developer.versacommerce.de/articles/liquid-filters-url-filters#paymenttypeimgurl) filter.

## shop.id

Returns the ID of the shop.

## shop.metafields

Returns the metafields of the shop. Metafields can only be set through the VersaCommerce API.

## shop.money_format

Returns the string VersaCommerce uses to format money without showing the currency.

## shop.money_with_currency_format

Returns the string VersaCommerce uses to format money and show the currency.

## shop.name

Returns the name of the shop.

## shop.password_message

Returns the message of the shop's password page.

## shop.permanent_domain

Returns the permanent **.versacommerce.de** domain of the shop.

## shop.phone

Returns the phone number of the shop.

## shop.policies

Returns an array of your shop's [policy objects](https://developer.versacommerce.de/articles/liquid-objects-policy). You set these policies in the **legal settings** of your shop in the VersaCommerce admin.

```liquid
 <ul>

{% for policy in shop.policies %}

  <li>{{ policy.title }}</li>
{% endfor %}

 </ul>
```

```html
<ul>
  <li>Privacy policy</li>
  <li>Refund policy</li>
  <li>Shipping policy</li>
  <li>Terms of service</li>
</ul>
```

A single policy can be referenced directly on the `shop` object. Each policy has its own [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy).

```liquid
{{ shop.privacy_policy.title }}
```

```text
Privacy policy
```

## shop.privacy_policy

Returns a [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy) for your shop's privacy policy.

## shop.published_locales

Returns an array of [shop_locale objects](https://developer.versacommerce.de/articles/liquid-objects-shop-locale). Each object is a locale published in the shop.

```liquid
{% for locale in shop.published_locales %}
  {{ locale.name }} ({{ locale.iso_code }})
{% endfor %}
```

## shop.refund_policy

Returns a [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy) for your shop's refund policy.

## shop.shipping_policy

Returns a [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy) for your shop's shipping policy.

## shop.subscription_policy

Returns a [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy) for your shop's subscription policy.

## shop.terms_of_service

Returns a [policy object](https://developer.versacommerce.de/articles/liquid-objects-policy) for your shop's terms of service.

## shop.products_count

Returns the number of products in the shop.

## shop.secure_url

Returns the full URL of the shop, prefixed with the `https` protocol.

```liquid
{{ shop.secure_url }}
```

```text
https://example-shop.com
```

## shop.types

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

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

## shop.url

Returns the full URL of the shop.

```liquid
{{ shop.url }}
```

```text
http://example-shop.com
```

## shop.vendors

Returns an array of all unique vendors in the shop.

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


## More properties

VersaCommerce also provides these properties on the `shop` object:

| Properties | Returns |
|---|---|
| `brand`, `impressum`, `logo_url`, `checkout_logo_url`, `meta_title`, `meta_description`, `handle`, `subdomain`, `version`, `current_design`, `current_sandbox_design` | Brand, legal, storefront and design metadata |
| `locations`, `default_location`, `operating_hours`, `pickup_enabled`, `delivery_enabled`, `preparation_time`, `delivery_duration`, `delivery_min_order_value`, `served_zipcodes`, `reservation_enabled?`, `limited_instant_delivery_products`, `within_instant_delivery_time_frame?`, `next_possible_instant_delivery` | Locations, pickup, delivery and reservation settings |
| `cart_notes_enable`, `cart_notes_placeholder`, `restricted_access?`, `password_protected?`, `password_enabled`, `password_input_enabled`, `password_info_image`, `checkout_enabled?`, `checkout_disabled?`, `redeemable_coupons?`, `carriers`, `carriers_count`, `all_products_count`, `auto_collections_count`, `tags`, `vendors_count`, `categories_count`, `recent_searches`, `money_without_currency_format`, `money_in_emails_format`, `money_with_currency_in_emails_format`, `price_includes_tax` | Storefront preferences, counts and display formats |
