Globals

Globals are available on all pages.

language

The language variable has the cart’s selected language. Default is en_US.

{% if language == 'es_ES' %}¡Hola!{% else %}Hello!{% endif %}

page_title

The page_title variable has the current page’s title. It is intended to be used in the <title> tag for your page.

<title>{% if page_title %}{{ page_title }} | {% endif %}{{ store.name }}</title>

page_name

The page_name variable has the current page’s name. It can be any of: cart, delivery, error, invoice, or thankyou.

request

The request variable is available through the request array.

This array contains all of the request variables (GET and POST).

{% if not request['remote'] %}
  {# show some content that doesn't show up in the iframe version #}
{% endfor %}