Skip to Content

Store

The store object provides store configuration for feed templates, such as routes, link lists, and policies.

{%- comment -%} Use store routes and menus in a feed template {%- endcomment -%} <link href="{{ store.routes.root_url }}"/> {% assign menu = store.linklists['main'] %} {% if menu %} <menu>{{ menu.title }}</menu> {% endif %}

routes

Returns the routes object which provides URLs for the endpoints needed in the store.

linklists

Returns the linklists for the current store.

{% assign menu = linklists['main'] %} {% for link in menu %} {% comment %}do something with the link{% endcomment %} {% endfor %}

can_sell_over_stock

Returns true if store products can be sell over stock.

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