- Getting Started
- Liquid reference
- Filters reference
- Tags reference
- Localization
- Theme structure
- Theme sections
- Theme assets
- Theme config
- Theme layout
- Theme templates
-
- article.liquid
- blog.liquid
- cart.liquid
- collection.liquid
- customer/account.liquid
- customer/addresses.liquid
- customer/details.liquid
- customer/login.liquid
- customer/order.liquid
- customer/register.liquid
- customer/reset-password.liquid
- home.liquid
- page.no-heading.liquid
- products.liquid
- search.liquid
- list-collections.liquid
- store-locator.liquid
- 404.liquid
- customer/activate_account.liquid
- customer/orders.liquid
- Submission
Global Object
The following objects can be used and accessed from any file in your theme, and are defined as global objects, or global variables:
page_title
The page_title object returns the title of the current page. Returns the title of a Product, or Page set in their respective Admin pages.
{{ page_title }}
About Us
current_page
current_page returns the number of the page you are on when browsing through paginated content. It can be used outside the paginate block.
{{ page_title }} - Page: {{ current_page }}
Summer Collection - Page: 1
template
template returns the name of the template used to render the current page, with the .liquid extension omitted.
{{ template }}.liquid
home.liquid
canonical_url
canonical_url object returns the canonical URL for the current page. The canonical URL is the page's "default" URL with any URL parameters removed.
For products and variants, the canonical URL is the default product page with no collection or variant selected. For example, for a product in a collection with a variant selected:
{{ canonical_url }}
http://store_name.easy.co/products/asus-zenbook-3-i7-7500u-16gb-512gb-w10h
page_description
page_description object returns the description of the product, collection, or page that is being rendered. Descriptions for these items can be set in your EasyStore control panel.
<meta name="description" content="{{ page_description }}" />
<meta name="description" content="This is my About Us page!" />
cart
cart object returns your store's cart. More info ›
shop
shop object contains information about your store. More info ›
collection
collection object returns all the collections in your store. More info ›
<ul>
{% for product in collection.products %}
<li>
<a href="{{ product.url }}"> {{ product.title }} </a>
</li>
{% endfor %}
</ul>
contents
contents object returns all the contents in your store. More info ›
<ul>
{% for footer_link in contents.footer.links %}
<li>
<a href="{{ link.url }}"> {{ link.title }} </a>
</li>
{% endfor %}
</ul>
copyright
copyright object returns the sentence of the copyright input. This item can be set in your EasyStore control panel > Settings > General.
{{ copyright }}
Copyright © 2016 Cup.co. E-commerce Powered by EasyStore
is_desktop
is_desktop object returns the current browser user agent device type whether is desktop or others.
{% if is_desktop %}
{{ page_title }}
{% endif %}
Summer Collection
is_tablet
is_tablet object returns the current browser user agent device type whether is tablet or others.
{% if is_tablet %}
{{ page_title }}
{% endif %}
Summer Collection
is_mobile
is_mobile object returns the current browser user agent device type whether is mobile or others.
{% if is_mobile %}
{{ page_title }}
{% endif %}
Summer Collection
is_other
is_other object returns the current browser user agent unknown device type.
{% if is_other %}
{{ page_title }}
{% endif %}
Summer Collection
current_tags
current_tags returns an array of the tags that the current collection or search results are being filtered by.
settings
settings returns the theme settings object, containing the values configured in the theme editor. More info ›