For the complete documentation index, see llms.txt. This page is also available as Markdown.

Globals object

Read visible shop-level globals from Liquid.

The globals object contains visible shop-level configuration from Globals and secrets.

Use globals for values that are safe to display, export, and sync with task repos:

{{ globals.account_username }}

Globals may contain any JSON value. If a global stores structured JSON, use normal Liquid lookups and loops:

{% for region in globals.shipping_rules.regions %}
  {{ region }}
{% endfor %}

If a key does not exist, globals.some_key returns nil.

Task options can also let a merchant choose a global:

{{ options.shared_username__global_required }}

That option returns the selected global's value at runtime. See Task options for option flag details.

Last updated

Was this helpful?