Global

Globally objects can be accessed from any file in your theme.


available_order_statuses

Lists available order statuses.

available_return_reasons

Lists available return reasons.

available_return_statuses

Lists available return statuses.

blog

Access the store’s blog.

campaigns

List available campaigns in the store.

cart

Returns the cart object.

categories

Access information about the categories in the store.

country_option_tags

Lists all the available country options. Country regions are rendered in regions data attribute.

Input

 <select name="country">
     {{ country_option_tags }}
 </select>

Output

 <select name="country">
     <option value="fi" data-regions='[]''>Suomi</option>
     <option value="us" data-regions='[["al", "Alabama"],..]'>United States</option>
 </select>

current_page

Returns the current page number when a product category is paged.

customer

Access the signed in customer information.

linklists

Returns the linklists for the current store.

 {% assign menu = linklists['main'] %}

 {% for link in menu %}
     {% comment %}do something with the link{% endcomment %}
 {% endfor %}

manufacturers

Returns an array of manufacturers in the store.

page_title

Returns the title for the current page.

 <title>{{ page_title }}</title>

pages

List available pages in the store.

products

List available products in the store.

request

Returns the information about the current request to page, like host or the current URL.

routes

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

session

Access information about the current session

settings

Access theme settings.

store

Returns the store object.

submitted_form

Returns last form submission result and data.

Input

 {{ submitted_form.id }}
 {{ submitted_form.error }}
 {{ submitted_form.posted_successfully? | yepnope: 'yes', 'no' }}

Output

 login
 email
 no

template

Returns information about the current template used at the page.

wishlist

Returns the wishlist object. Returns false is customer is not signed in.