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:

{{ shop.address.city }}
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:

{{ shop.address.country }}
Germany

shop.address.country_upper

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

{{ shop.address.country_upper }}
GERMANY

The result is the same as applying the upcase filter to shop.address.country.

shop.address.province

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

{{ shop.address.province }}
Lower Saxony

shop.address.province_code

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

{{ shop.address.province_code }}
NI

shop.address.street

Returns the street of the shop's address:

{{ shop.address.street }}
1 Example Street

shop.address.summary

Returns a summary of the shop's address:

{{ shop.address.summary }}
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:

{{ shop.address.zip }}
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.

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

shop.customeraccountsenabled

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

shop.customeraccountsoptional

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 the shop accepts.

shop.enabledpaymenttypes

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 paymenttypesvg_tag filter. To link to the SVG image instead, use the paymenttypeimg_url 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.moneywithcurrency_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. You set these policies in the legal settings of your shop in the VersaCommerce admin.

 <ul>

{% for policy in shop.policies %}

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

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

{{ shop.privacy_policy.title }}
Privacy policy

shop.privacy_policy

Returns a policy object for your shop's privacy policy.

shop.published_locales

Returns an array of shop_locale objects. Each object is a locale published in the shop.

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

shop.refund_policy

Returns a policy object for your shop's refund policy.

shop.shipping_policy

Returns a policy object for your shop's shipping policy.

shop.subscription_policy

Returns a policy object for your shop's subscription policy.

shop.termsofservice

Returns a policy object 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.

{{ shop.secure_url }}
https://example-shop.com

shop.types

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

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

shop.url

Returns the full URL of the shop.

{{ shop.url }}
http://example-shop.com

shop.vendors

Returns an array of all unique vendors in the shop.

{% 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