Skip to Content

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

Returns the stores logo if it’s set.

favicon

Returns the stores favicon if it’s set.

domain

Returns the domain of the store.

Returns the default consent options for the store that a user can accept.

customer_can_view_product_sales_details

Returns true if customer has the right to 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.

customer_accounts_enabled

Returns true if customer accounts are enabled in the store. If not, no login or register links should be displayed.

customer_accounts_optional

Returns true if customer accounts are optional. This means that customers make purchases without creating an account to the store.

customer_accounts_require_approval

Returns true if customer accounts need to be approved. After registering to the store, merchant needs to accept the account before customer can access the store.

catalog_browsing_requires_account

Returns true if a customer account is required to browse the catalog. Customer cannot access other parts of the store before creating an account.

published_locales

Returns the published locales.

enabled_currencies

Returns the enabled currencies.

has_password

Returns true if store has password set.

currency

Returns the current currency.

can_sell_over_stock

Returns true if store products can be sell over stock.

payment_methods

Returns the available payment methods

shipping_methods

Returns the available shipping methods

name

Returns the name.

merchant

Returns the owner merchant account information

policies

Returns available policies as array.

terms_and_conditions

Returns terms and conditions with following properties:

  • title
  • body
  • url

privacy_policy

Returns privacy policy with following properties:

  • title
  • body
  • url

shipping_policy

Returns shipping policy with following properties:

  • title
  • body
  • url

refund_policy

Returns refund policy with following properties:

  • title
  • body
  • url

theme

Returns information about the current theme.

inventory

Returns information about the inventory that is used in the store.

inventories

Returns information about inventories inventories that have been configured to this merchant.