Global context

Store identity, routes, localization, navigation, consent, the age gate, and request state.

These pages list the exact data fields available to hosted Vascula themes. Add a root name such as product to a section's ctx_needs, then read it directly as product.title in the template. The ctx. prefix shown here identifies the public contract; do not include that prefix in a Vascula expression. Required fields are present whenever their containing object is present. Optional fields may be absent, and nullable fields may be present as null. [] marks an array item and {key} marks a key selected at runtime. Named types such as Price and Media are detailed on Shared data shapes.

ctx.shop#

Store identity, storefront-visible store metafields, the active market's standing free-shipping offer, and the storefront search switches. Available on every storefront route. Declare it in ctx_needs before reading it.

Field

Type

Requirement

Description

ctx.shop

Object

Declared root

ctx.shop.checkout_enabled

Boolean

Optional

False when this storefront sells by enquiry only (the sales channel's selling mode in Store Admin): there is no cart, checkout, buy now, express checkout or Gift Card purchase, and every product is on_request with availability_reason enquiries_only while keeping its price. Hide the cart icon, cart drawer, cart and checkout links and cart forms then; show prices and an enquiry (the product page's contact form or the store's own link) instead of add to cart. The platform refuses every cart and checkout request on such a storefront.

ctx.shop.contact_email

String

Optional

ctx.shop.free_shipping

Object

Optional

ctx.shop.free_shipping.rate_below

Money input

Required

ctx.shop.free_shipping.threshold

Money input

Required

ctx.shop.live_chat

Object

Optional

The storefront Live Chat: whether to show the theme's chat block, its welcome message, and the platform script and endpoints that run it. The theme designs the chat; the platform runs it.

ctx.shop.live_chat.ai_assistant

Boolean

Required

True when the AI Sales Assistant answers in the chat. With team and ai_assistant both true, open the chat on the assistant and show a switcher at the top to chat with the team instead (TringifyChat.setMode("ai" | "team")). With only ai_assistant, there is no switcher: when the assistant can't help it hands over to the team, who follow up by email (a case).

ctx.shop.live_chat.api_url

String

Required

The Live Chat endpoints on this store domain (/api/shop/2026-11/chat): config, challenge, start, messages, email, attachments and socket, for a chat built without the script.

ctx.shop.live_chat.enabled

Boolean

Required

True when the chat is available: the store's plan includes Live Chat and the store has its team (team) or the AI Sales Assistant (ai_assistant) on, in Inbox › Live Chat settings. Show the chat block only while true; the chat itself checks again when it starts, so a page cached before the merchant turned it off starts no chat.

ctx.shop.live_chat.script_url

String

Required

The Live Chat script (versioned, no styling). Load it once with