Store
The store
object provides information about the store, its configuration, policies, currencies, and more.
Usage Example
{%- comment -%} Show store name and logo {%- endcomment -%}
<header>
{% if store.logo %}<img src="{{ store.logo }}" alt="{{ store.name }} logo">{% endif %}
<h1>{{ store.name }}</h1>
</header>
{%- comment -%} Show enabled currencies {%- endcomment -%}
<ul>
{% for currency in store.enabled_currencies %}
<li>{{ currency.code }}</li>
{% endfor %}
</ul>
Properties
can_sell_over_stock
Returns true if store products can be sold over stock.
catalog_browsing_requires_account
Returns true if a customer account is required to browse the catalog.
currency
Returns the current currency.
customer_accounts_enabled
Returns true if customer accounts are enabled in the store.
customer_accounts_optional
Returns true if customer accounts are optional.
customer_accounts_require_approval
Returns true if customer accounts need to be approved.
customer_can_view_product_sales_details
Returns true if customer can view product sales details such as price.
customer_has_purchase_right
Returns true if customer has the right to view product sales details such as price.
default_consent_options
Returns the default consent options for the store.
enabled_currencies
Returns the enabled currencies.
favicon
Returns the store’s favicon if set.
has_password
Returns true if the store has a password set.
inventories
Returns information about inventories configured for this merchant.
inventory
Returns information about the inventory used in the store.
logo
Returns the store’s logo if set.
merchant
Returns the owner merchant account information.
name
Returns the store name.
payment_methods
Returns the available payment methods.
policies
Returns available policies as an array.
privacy_policy
Returns privacy policy with the following properties:
- title
- body
- url
published_locales
Returns the published locales.
refund_policy
Returns refund policy with the following properties:
- title
- body
- url
shipping_methods
Returns the available shipping methods.
shipping_policy
Returns shipping policy with the following properties:
- title
- body
- url
terms_and_conditions
Returns terms and conditions with the following properties:
- title
- body
- url
theme
Returns information about the current theme.