Cart, wishlist, and reviews

Visitor commerce state, delivery or pickup, discounts, express checkout buttons, wishlist items, and shopper-visible reviews.

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.cart#

The current cart. Header use receives counts; rich cart surfaces receive line, price, discount, limit, and shipping data. A line whose product or variant can no longer be bought here (deleted, archived, unpublished, variant removed) is removed from the cart when a rich surface reads it; item_count then counts only the lines shown, and form_notice tells the shopper once. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.cart

Object

Declared root

ctx.cart.advertised_coupons

Array of object

Optional

ctx.cart.advertised_coupons[].bxgy_buy_quantity

Integer

Optional

ctx.cart.advertised_coupons[].bxgy_get_quantity

Integer

Optional

ctx.cart.advertised_coupons[].bxgy_get_type

String

Optional

ctx.cart.advertised_coupons[].bxgy_get_value

Number

Optional

ctx.cart.advertised_coupons[].code

String

Required

ctx.cart.advertised_coupons[].eligible

Boolean

Required

ctx.cart.advertised_coupons[].ends_at

Timestamp

Optional

ctx.cart.advertised_coupons[].formatted_amount

String

Optional

ctx.cart.advertised_coupons[].formatted_bxgy_get_value

String

Optional

ctx.cart.advertised_coupons[].formatted_min_subtotal

String

Optional

ctx.cart.advertised_coupons[].formatted_potential_amount

String

Required

ctx.cart.advertised_coupons[].formatted_threshold_shortfall

String

Optional

ctx.cart.advertised_coupons[].has_potential_savings

Boolean

Required

ctx.cart.advertised_coupons[].id

String

Required

ctx.cart.advertised_coupons[].min_subtotal

Decimal string

Optional

ctx.cart.advertised_coupons[].name

String

Required

The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name.

ctx.cart.advertised_coupons[].potential_amount

Decimal string

Required

ctx.cart.advertised_coupons[].reason

String

Optional

ctx.cart.advertised_coupons[].reason_kind

String

Optional

ctx.cart.advertised_coupons[].savings_text

String

Required

ctx.cart.advertised_coupons[].threshold_shortfall

Decimal string

Optional

ctx.cart.advertised_coupons[].type

String

Required

ctx.cart.advertised_coupons[].value

Number

Optional

ctx.cart.checkout_limits

Object

Optional

ctx.cart.checkout_limits.above_maximum

Boolean

Required

ctx.cart.checkout_limits.above_maximum_quantity

Boolean

Required

ctx.cart.checkout_limits.below_minimum

Boolean

Required

ctx.cart.checkout_limits.below_minimum_quantity

Boolean

Required

ctx.cart.checkout_limits.excess

Money input

Optional

ctx.cart.checkout_limits.max_amount

Money input

Optional

ctx.cart.checkout_limits.max_enabled

Boolean

Required

ctx.cart.checkout_limits.max_quantity

Integer

Optional

max_quantity_enabled only: the most items an order may have (inclusive).

ctx.cart.checkout_limits.max_quantity_enabled

Boolean

Required

ctx.cart.checkout_limits.min_amount

Money input

Optional

ctx.cart.checkout_limits.min_enabled

Boolean

Required

ctx.cart.checkout_limits.min_quantity

Integer

Optional

min_quantity_enabled only: the fewest items an order may have (inclusive).

ctx.cart.checkout_limits.min_quantity_enabled

Boolean

Required

ctx.cart.checkout_limits.quantity

Integer

Required

The cart's total item quantity, the figure the quantity limits compare.

ctx.cart.checkout_limits.quantity_excess

Integer

Optional

above_maximum_quantity only: how many items to remove.

ctx.cart.checkout_limits.quantity_message

String

Optional

Only when the quantity is outside the limits: the notice in the shopper's language, for example "Orders need at least 5 items. Add 2 more items to check out." Print it as given.

ctx.cart.checkout_limits.quantity_shortfall

Integer

Optional

below_minimum_quantity only: how many more items the cart needs.

ctx.cart.checkout_limits.shortfall

Money input

Optional

ctx.cart.checkout_limits.within_range

Boolean

Required

Whether the order value (subtotal after discounts) and the item quantity are both within the market's limits. Checkout refuses an order outside them.

ctx.cart.checkout_ready

Boolean

Optional

Rich cart only. Whether checkout can take this cart as it is: it has items, no line has an issue, and the total and item quantity are within the market's checkout limits. Disable the checkout button while false and show what to change (issues, checkout_limits). Checkout applies the same rule.

ctx.cart.coupon_codes

Array of string

Optional

ctx.cart.currency_code

String

Optional

ctx.cart.discount_nudges

Array of object

Optional

ctx.cart.discount_nudges[].bundle

Object

Optional

ctx.cart.discount_nudges[].bundle.missing_items

Array of object

Required

ctx.cart.discount_nudges[].bundle.missing_items[].media

Cart media or null

Required; may be null

ctx.cart.discount_nudges[].bundle.missing_items[].product_id

Integer

Required

ctx.cart.discount_nudges[].bundle.missing_items[].quantity_needed

Integer

Required

ctx.cart.discount_nudges[].bundle.missing_items[].requires_options

Boolean

Required

True when the shopper must pick a variant first: link to url (Choose options) instead of an add-to-cart form.

ctx.cart.discount_nudges[].bundle.missing_items[].title

String

Required

ctx.cart.discount_nudges[].bundle.missing_items[].unit_price

Presented money or null

Required; may be null

The variant's price, or the product's lowest variant price when requires_options is true.

ctx.cart.discount_nudges[].bundle.missing_items[].url

URL

Required

ctx.cart.discount_nudges[].bundle.missing_items[].variant_id

Integer or null

Required; may be null

The exact variant to add; null when the set names a whole product with variants.

ctx.cart.discount_nudges[].bundle.saving

Presented money or null

Required; may be null

ctx.cart.discount_nudges[].id

String

Required

ctx.cart.discount_nudges[].name

String

Required

The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name.

ctx.cart.discount_nudges[].reason

String

Required

ctx.cart.discount_nudges[].type

String

Required

ctx.cart.discount_stacking

Object

Optional

ctx.cart.discount_stacking.at_capacity

Boolean

Required

ctx.cart.discount_stacking.auto_coupon_combine

Boolean

Required

ctx.cart.discount_stacking.capacity_reason

String

Required

ctx.cart.discount_stacking.coupon_limit

Integer

Required

ctx.cart.discount_stacking.max_coupons_per_order

Integer

Required

ctx.cart.discount_stacking.mode

String

Required

ctx.cart.discount_total

Presented money

Optional

ctx.cart.discounts

Array of object

Optional

ctx.cart.discounts[].activation

String

Required

ctx.cart.discounts[].amount

Decimal string

Required

Signed displayed discount: subtotal minus discounted total. A tax-rate threshold can make this negative.

ctx.cart.discounts[].code

String

Optional

ctx.cart.discounts[].eligible

Boolean

Required

ctx.cart.discounts[].formatted_adjustment

String

Optional

Nonzero effect on the displayed total, including its sign: minus for savings, plus for a tax adjustment. Render directly without adding a sign.

ctx.cart.discounts[].formatted_amount

String

Required

ctx.cart.discounts[].id

String

Required

ctx.cart.discounts[].name

String

Required

The discount's offer label in the shopper's language: the name shoppers see for it, never the merchant's own discount name.

ctx.cart.discounts[].reason

String

Optional

ctx.cart.discounts[].type

String

Required

ctx.cart.formatted_discount_total

String

Optional

ctx.cart.free_shipping

Object

Optional

ctx.cart.free_shipping.progress

Integer

Required

ctx.cart.free_shipping.qualified

Boolean

Required

ctx.cart.free_shipping.rate_below

Money input

Required

ctx.cart.free_shipping.remaining

Money input

Required

ctx.cart.free_shipping.threshold

Money input

Required

ctx.cart.gift_offers

Array of object

Optional

ctx.cart.gift_offers[].claimed_quantity

Integer

Required

ctx.cart.gift_offers[].discount_id

String

Required

ctx.cart.gift_offers[].discount_name

String

Required

The gift discount's offer label in the shopper's language, never the merchant's own discount name.

ctx.cart.gift_offers[].mode

String

Required

ctx.cart.gift_offers[].product

Object or null

Required; may be null

ctx.cart.gift_offers[].product.id

Integer

Required

ctx.cart.gift_offers[].product.media

Cart media or null

Required; may be null

ctx.cart.gift_offers[].product.slug

String or null

Required; may be null

ctx.cart.gift_offers[].product.title

String or null

Required; may be null

ctx.cart.gift_offers[].product.url

String or null

Required; may be null

ctx.cart.gift_offers[].product_id

Integer

Required

ctx.cart.gift_offers[].quantity

Integer

Required

ctx.cart.gift_offers[].remaining_quantity

Integer

Required

ctx.cart.gift_offers[].variant

Object or null

Required; may be null

ctx.cart.gift_offers[].variant.id

Integer

Required

ctx.cart.gift_offers[].variant.media

Cart media or null

Required; may be null

ctx.cart.gift_offers[].variant.options

Array of object

Required

ctx.cart.gift_offers[].variant.options[].name

String

Required

ctx.cart.gift_offers[].variant.options[].value

String

Required

ctx.cart.gift_offers[].variant.sku

String or null

Required; may be null

ctx.cart.gift_offers[].variant.title

String or null

Required; may be null

ctx.cart.gift_offers[].variant_id

Integer or null

Required; may be null

ctx.cart.inactive_coupons

Array of object

Optional

ctx.cart.inactive_coupons[].code

String

Required

ctx.cart.inactive_coupons[].reason

String

Required

ctx.cart.issues

Array of object

Optional

Rich cart only. The lines checkout cannot take as they are, in cart order; empty when none.

ctx.cart.issues[].label

String

Required

The reason in the shopper's language (items[].availability_reason_label).

ctx.cart.issues[].line_id

String

Required

The line (items[].line_id) to update or remove.

ctx.cart.issues[].product_id

Integer

Required

ctx.cart.issues[].quantity

Integer

Required

The quantity in the cart.

ctx.cart.issues[].quantity_available

Integer or null

Optional; may be null

insufficient_stock only: how many can be bought now; set the line to it to fix the line. Null when stock is not the limit.

ctx.cart.issues[].reason

String

Required

Why checkout cannot take the line: out_of_stock, insufficient_stock or not_at_pickup_location (items[].availability_reason). Lines whose product or variant is gone are removed from the cart instead.

ctx.cart.issues[].variant_id

Integer or null

Optional; may be null

ctx.cart.item_count

Integer

Required

ctx.cart.items

Array of object

Optional

ctx.cart.items[].availability_reason

String or null

Required; may be null

ctx.cart.items[].availability_reason_label

String

Optional

ctx.cart.items[].available_for_sale

Boolean

Required

ctx.cart.items[].free_units

Integer

Required

ctx.cart.items[].gift_card_recipient

Object or null

Required; may be null

ctx.cart.items[].gift_card_recipient.deliver_at

Timestamp or null

Required; may be null

The scheduled send time (RFC 3339 in the store's timezone with its offset), for machines such as

ctx.cart.items[].gift_card_recipient.deliver_at_display

String or null

Required; may be null

deliver_at ready to show: store time with the store's timezone named, in the shopper's language, the way the country they shop from writes dates, such as "Fri, Oct 30, 9:00 AM (Hong Kong Time)"; the year appears when it is not this year. Null when no schedule was chosen. Print it as given.

ctx.cart.items[].gift_card_recipient.email

String

Required

ctx.cart.items[].gift_card_recipient.message

String

Required

ctx.cart.items[].gift_card_recipient.name

String

Required

ctx.cart.items[].gift_card_recipient.phone

String

Required

E.164, for machines (tel: links). Show phone_display.

ctx.cart.items[].gift_card_recipient.phone_display

String

Optional

The phone in its country's international format, such as +852 9123 4567; present when phone is set.

ctx.cart.items[].is_free_gift

Boolean

Required

ctx.cart.items[].is_gift_card

Boolean

Required

ctx.cart.items[].line_discount

Presented money or null

Required; may be null

ctx.cart.items[].line_id

String

Required

ctx.cart.items[].line_subtotal

Presented money or null

Required; may be null

ctx.cart.items[].max_order_quantity

Integer or null

Required; may be null

ctx.cart.items[].max_order_remaining

Integer or null

Required; may be null

ctx.cart.items[].notify_me_eligible

Boolean

Required

ctx.cart.items[].on_sale

Boolean

Required

ctx.cart.items[].product

Object or null

Required; may be null

Never null: a line whose product or variant is gone is removed from the cart before themes see it.

ctx.cart.items[].product.id

Integer

Required

ctx.cart.items[].product.media

Cart media or null

Required; may be null

ctx.cart.items[].product.slug

String or null

Required; may be null

ctx.cart.items[].product.title

String or null

Required; may be null

ctx.cart.items[].product.url

String or null

Required; may be null

ctx.cart.items[].product_id

Integer

Required

ctx.cart.items[].properties

Line properties or null

Required; may be null

ctx.cart.items[].property_list

Array of object

Optional

ctx.cart.items[].property_list[].display_value

String

Required

ctx.cart.items[].property_list[].key

String

Required

ctx.cart.items[].property_list[].name

String

Required

ctx.cart.items[].property_list[].value

String

Required

ctx.cart.items[].purchase_state

String

Required

ctx.cart.items[].quantity

Integer

Required

ctx.cart.items[].quantity_at_limit

Boolean

Required

ctx.cart.items[].quantity_available

Integer or null

Required; may be null

ctx.cart.items[].quantity_can_add

Integer or null

Required; may be null

ctx.cart.items[].regular_line_subtotal

Presented money or null

Required; may be null

ctx.cart.items[].regular_unit_price

Presented money or null

Required; may be null

ctx.cart.items[].requires_shipping

Boolean

Required

False for items that don't need shipping (services, digital goods, tickets, gift cards).

ctx.cart.items[].series

Object

Optional

ctx.cart.items[].series.count

Integer

Required

ctx.cart.items[].series.index

Integer

Required

ctx.cart.items[].series.key

String

Required

ctx.cart.items[].series.media

Cart media

Optional

ctx.cart.items[].series.quantity

Integer

Required

ctx.cart.items[].series.subtotal

Money input

Optional

ctx.cart.items[].series.title

String or null

Optional; may be null

ctx.cart.items[].series.variant

String or null

Optional; may be null

ctx.cart.items[].thumbnail

URL

Optional

The shopper's own design for a personalised line: an app attached a file to it (a line artifact), and this store-domain address shows that app's preview of it. Show it instead of the product or variant image when present; absent for every other line. The image is private to this shopper's cart: never cache it in a shared place or put it in links.

ctx.cart.items[].total

Presented money or null

Required; may be null

ctx.cart.items[].unit_price

Presented money or null

Required; may be null

Null when the item has no price in the cart currency; guard it before | money.

ctx.cart.items[].variant

Object or null

Required; may be null

ctx.cart.items[].variant.id

Integer

Required

ctx.cart.items[].variant.media

Cart media or null

Required; may be null

ctx.cart.items[].variant.options

Array of object

Required

ctx.cart.items[].variant.options[].name

String

Required

ctx.cart.items[].variant.options[].value

String

Required

ctx.cart.items[].variant.sku

String or null

Required; may be null

ctx.cart.items[].variant.title

String or null

Required; may be null

ctx.cart.items[].variant_id

Integer or null

Required; may be null

ctx.cart.mode

String (delivery, pickup)

Optional

The cart's shopping mode: the whole cart is delivered, or collected at pickup_location. A line with no stock at the pickup location reports available_for_sale false with availability_reason not_at_pickup_location; a line asking for more than the location holds reports insufficient_stock, with quantity_available giving what it holds. availability_reason_label is the shopper message for either: print it, not the reason code.

ctx.cart.note

String

Optional

Rich cart only. The shopper's note for the store; empty when none. Set with the cart_note_update action; checkout places it on the order.

ctx.cart.note_max_length

Integer

Optional

Rich cart only. The longest note allowed, in characters (Unicode code points): use it as the textarea maxlength.

ctx.cart.optional_fees

Array of object

Optional

Rich cart only. The enabled optional checkout fees of the cart's current market, in the store's order; empty when it has none. Select with the cart_fee_select action. Checkout prices, taxes and charges them for the delivery market.

ctx.cart.optional_fees[].amount

Presented money

Optional

Fixed fees only: the amount in the cart currency, before tax, per order or per item as apply_per says.

ctx.cart.optional_fees[].applies

Boolean

Required

Whether this cart meets the fee's conditions (chosen products or collections, order subtotal range). When false, show the fee disabled with unavailable_reason, or hide it; a choice already made is kept and charged once the cart meets them.

ctx.cart.optional_fees[].apply_per

String (order, item)

Required

order: charged once; item: charged for each item in the order.

ctx.cart.optional_fees[].customer_text

String

Required

The text the shopper saved for this fee; empty when none.

ctx.cart.optional_fees[].description

String

Required

Fee description set by the store; empty when none.

ctx.cart.optional_fees[].fee_type

String (fixed, percent)

Required

fixed: a set amount; percent: a share of the order subtotal, worked out at checkout.

ctx.cart.optional_fees[].id

String

Required

Send as fee_id to the cart_fee_select action.

ctx.cart.optional_fees[].name

String

Required

Fee name set by the store.

ctx.cart.optional_fees[].percent

Decimal string

Optional

Percent fees only: the percentage as a decimal string, for example "2.5".

ctx.cart.optional_fees[].percent_cap

Presented money

Optional

Percent fees with a maximum only: the most the fee charges, in the cart currency.

ctx.cart.optional_fees[].selected

Boolean

Required

Whether the shopper chose this fee. Checkout starts with the chosen fees selected.

ctx.cart.optional_fees[].text

Object

Optional

Only for a fee that asks the shopper for text (a gift message): how to ask for it. Send the text with the cart_fee_select action (selected=true and text).

ctx.cart.optional_fees[].text.max_length

Integer

Required

The longest text allowed, in characters (Unicode code points): use it as the input maxlength.

ctx.cart.optional_fees[].text.prompt

String

Required

The field's label in the shopper's language (the store's prompt, or "Message").

ctx.cart.optional_fees[].text.required

Boolean

Required

Whether checkout needs the text before the order can be placed when the fee is chosen.

ctx.cart.optional_fees[].unavailable_reason

String

Optional

Only when applies is false: why, in the shopper's language, for example "Available on orders of ₹499.00 or more" or "Available for selected products".

ctx.cart.pickup_location

Pickup location or null

Optional; may be null

The location the cart is collected from in pickup mode; null for delivery. In pickup mode the cart is taxed at this location (as checkout taxes the order) and nothing is shipped: total.tax_display has status exact, and its inclusive amount is the total checkout will charge. No shipping or duty note applies.

ctx.cart.price_notes

Object

Optional

Rich cart only. The total's tax and duty notes from the market's setup for the shopper's country, each on its own (null when it does not apply; all null for an empty cart), so the theme shows the ones the merchant chose. Print each as given.

ctx.cart.price_notes.duty

String or null

Required; may be null

The duty note: who pays import duties (on delivery, at checkout or included; at checkout only where the destination has an enabled duty rule in the shopper's currency, otherwise on delivery), for example "Import duties and taxes may be due on delivery." Null unless a delivered item ships into the shopper's country from another one, or when the merchant emptied it in storefront text.

ctx.cart.price_notes.tax

String or null

Required; may be null

The tax note: what the cart total says about tax (included, estimated, excluded or calculated at checkout), for example "Tax included." Null where no tax is charged on it, or when the merchant emptied it in storefront text.

ctx.cart.shipping_estimate

Object or null

Optional; may be null

Rich cart only. What a theme needs to estimate shipping, tax, duties and cash on delivery for the cart before checkout: the countries of the shopper's market and their state and postal code fields. POST the chosen country_code, province_code and postal_code to url (the cart_estimate action) and show its answer. Null when there is nothing to estimate: an empty cart, a cart collected in store (mode pickup), or a market with no countries.

ctx.cart.shipping_estimate.countries

Array of object

Required

The countries the shopper's market sells to, in the shopper's language; selected marks the shopper's current country. Only these can be estimated: another country has other prices.

ctx.cart.shipping_estimate.countries[].iso_code

String

Required

ctx.cart.shipping_estimate.countries[].name

String

Required

ctx.cart.shipping_estimate.countries[].selected

Boolean

Required

ctx.cart.shipping_estimate.fields_by_country

Object keyed by name

Required

Per country code, the address fields an estimate uses, in the order the country writes them: province_code (with its options) where the country's addresses name a state, and postal_code where it has postal codes. Same shape as customer.address_form.fields_by_country. A country with neither has an empty list.

ctx.cart.shipping_estimate.fields_by_country.{key}

Array of object

Dynamic key

ctx.cart.shipping_estimate.fields_by_country.{key}[].autocomplete

String

Required

The autocomplete token for the input.

ctx.cart.shipping_estimate.fields_by_country.{key}[].input_mode

String

Required

The keyboard to show: text, numeric or tel.

ctx.cart.shipping_estimate.fields_by_country.{key}[].key

String

Required

The address field and the input name to post it under: country_code (always first), then first_name, last_name, company, address1, address2, district, city, province_code, postal_code in the country's order (each only where the country's address has it), then phone.

ctx.cart.shipping_estimate.fields_by_country.{key}[].label

String

Required

The field label in the shopper's language: the store's Storefront Messages text where the store customized it, else the country's own word (Postcode, PIN code, Prefecture...).

ctx.cart.shipping_estimate.fields_by_country.{key}[].max_length

Integer

Required

The longest value the platform accepts.

ctx.cart.shipping_estimate.fields_by_country.{key}[].options

Array of object

Optional

The only accepted values, when the field is a fixed list (province: value is the ISO 3166-2 code such as IN-HR, label its name in the shopper's language). Post the value; show the label. The country_code field carries no options: build its select from address_form.countries. Changing the country changes the other fields: render that country's list.

ctx.cart.shipping_estimate.fields_by_country.{key}[].options[].label

String

Required

ctx.cart.shipping_estimate.fields_by_country.{key}[].options[].value

String

Required

ctx.cart.shipping_estimate.fields_by_country.{key}[].pattern

String

Optional

A regular expression the whole value must match, when the country has one (postal codes).

ctx.cart.shipping_estimate.fields_by_country.{key}[].placeholder

String

Optional

A placeholder for the input (the postal code field gives an example postal code).

ctx.cart.shipping_estimate.fields_by_country.{key}[].required

Boolean

Required

Whether the address cannot be saved without this field, for this country.

ctx.cart.shipping_estimate.fields_by_country.{key}[].row

Integer

Required

Fields with the same row belong side by side on one line, in the order the country writes an address.

ctx.cart.shipping_estimate.postal_lookup

Object

Required

The postal code → state lookup, as in customer.address_form: fill the state from a postal code for its countries.

ctx.cart.shipping_estimate.postal_lookup.countries

Array of string

Required

The countries whose postal codes the lookup knows, among those this storefront sells to. Today only India (IN), from the India Post PIN directory; the list is empty when the storefront does not sell to India. Look up only for these countries.

ctx.cart.shipping_estimate.postal_lookup.url

URL

Required

Where to look up the state for a postal code: GET it with country_code and postal_code query parameters. A known code answers 200 with province_code (the ISO 3166-2 code to select in the province_code field) and province_name (its name in the shopper's language); an unknown code answers 404. Fill the state from the answer and leave it for the shopper to change.

ctx.cart.shipping_estimate.url

URL

Required

Where to POST an estimate (the cart_estimate action) with country_code, province_code and postal_code, the CSRF token in the X-CSRF-Token header. The answer is JSON; see the cart_estimate action.

ctx.cart.subtotal

Presented money

Optional

ctx.cart.total

Presented money

Optional

ctx.cart.unique_item_count

Integer

Required

ctx.shopping#

How the shopper is shopping: delivery, or pickup at one store location. In pickup mode every stock figure (product, card, filter, search, cart) is that location's stock, and checkout skips shipping. Switch with the shopping_mode_set action; shop.pickup_locations lists the locations offered to this shopper. A pickup location outside the shopper's market (or one that stopped offering pickup) resets the mode to delivery; on that request notice carries the message to show the shopper, and is null otherwise. In pickup mode catalog_notice names the location the catalog is shown for ("Showing products stocked at …" when pickup_location.stocked_only, else "Showing stock at …"): show it with a way to change the location wherever products are listed; it is null for delivery. Available on every storefront route. Declare it in ctx_needs before reading it.

Field

Type

Requirement

Description

ctx.shopping

Object

Declared root

ctx.shopping.catalog_notice

String or null

Required; may be null

ctx.shopping.mode

String (delivery, pickup)

Required

ctx.shopping.notice

String or null

Required; may be null

ctx.shopping.pickup_available

Boolean

Required

ctx.shopping.pickup_location

Pickup location or null

Required; may be null

ctx.express#

Express checkout (wallet buttons such as Apple Pay and Google Pay) for the purchase on this page: on a product page the routed product's selected variant and quantity (the cart is untouched), on the cart page the cart, and in global chrome (a cart drawer) the cart on every page, refreshed with the drawer. Print ctx.express.slot where the buttons go, typically in an "Express checkout" block under Add to cart or Checkout, and nothing else for it. The slot is platform markup that the platform's own script turns into wallet buttons: themes never contain wallet code and must not restyle, move or remove its children. On a product page the script reads the selected variant and quantity from the page's cart_add form for ctx.product.id, and hides the buttons while a selection cannot use express checkout (variant_reasons, keyed by variant id) or the form carries line properties. When available is false the slot is empty; reason (a code) and reason_label (in the shopper's language) say why, for the theme editor or a short note. The buttons also stay hidden on a device without a wallet. Nothing here varies per visitor beyond market, currency, language and shopping mode, so pages stay cacheable. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.express

Object

Declared root

ctx.express.available

Boolean

Required

ctx.express.reason

String (EXPRESS_REASON_DISABLED, EXPRESS_REASON_CHECKOUT_UNAVAILABLE, EXPRESS_REASON_NO_PROVIDER, EXPRESS_REASON_PROVIDER_SETUP, EXPRESS_REASON_CURRENCY, EXPRESS_REASON_CHECKOUT_FIELD, EXPRESS_REASON_SIGN_IN, EXPRESS_REASON_PICKUP, EXPRESS_REASON_EMPTY_CART, EXPRESS_REASON_DISCOUNT_CODE, EXPRESS_REASON_GIFT_CARD, EXPRESS_REASON_PRICE_ON_REQUEST, EXPRESS_REASON_PERSONALISED, EXPRESS_REASON_SOLD_OUT, EXPRESS_REASON_ORDER_LIMIT, EXPRESS_REASON_NOT_PURCHASABLE, EXPRESS_REASON_DEVICE_NO_WALLET) or null

Required; may be null

ctx.express.reason_label

String or null

Required; may be null

ctx.express.slot

HTML

Required

ctx.express.source

String (product, cart) or null

Required; may be null

ctx.express.variant_reasons

Object keyed by name

Required

ctx.express.variant_reasons.{key}

String (EXPRESS_REASON_DISABLED, EXPRESS_REASON_CHECKOUT_UNAVAILABLE, EXPRESS_REASON_NO_PROVIDER, EXPRESS_REASON_PROVIDER_SETUP, EXPRESS_REASON_CURRENCY, EXPRESS_REASON_CHECKOUT_FIELD, EXPRESS_REASON_SIGN_IN, EXPRESS_REASON_PICKUP, EXPRESS_REASON_EMPTY_CART, EXPRESS_REASON_DISCOUNT_CODE, EXPRESS_REASON_GIFT_CARD, EXPRESS_REASON_PRICE_ON_REQUEST, EXPRESS_REASON_PERSONALISED, EXPRESS_REASON_SOLD_OUT, EXPRESS_REASON_ORDER_LIMIT, EXPRESS_REASON_NOT_PURCHASABLE, EXPRESS_REASON_DEVICE_NO_WALLET)

Dynamic key

ctx.express.wallets

Array of object

Required

ctx.express.wallets[].id

String (apple_pay, google_pay, link, paypal, amazon_pay, klarna)

Required

ctx.express.wallets[].label

String

Required

ctx.wishlist#

The visitor's wishlist state and, for rich surfaces, its sellable product rows. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.wishlist

Object

Declared root

ctx.wishlist.enabled

Boolean

Required

ctx.wishlist.id

String or null

Required; may be null

ctx.wishlist.item_count

Integer

Required

ctx.wishlist.items

Array of object

Optional

ctx.wishlist.items[].availability_reason

String or null

Required; may be null

ctx.wishlist.items[].availability_reason_label

String

Optional

ctx.wishlist.items[].available_for_sale

Boolean

Required

ctx.wishlist.items[].identity_hash

String

Optional

ctx.wishlist.items[].notify_me_eligible

Boolean

Required

ctx.wishlist.items[].on_sale

Boolean

Required

ctx.wishlist.items[].price

Presented money

Optional

ctx.wishlist.items[].product

Object or null

Required; may be null

ctx.wishlist.items[].product.availability_reason

String or null

Optional; may be null

ctx.wishlist.items[].product.availability_reason_label

String or null

Optional; may be null

ctx.wishlist.items[].product.available_for_sale

Boolean

Optional

ctx.wishlist.items[].product.brand

String or null

Optional; may be null

ctx.wishlist.items[].product.brand_url

URL or null

Optional; may be null

ctx.wishlist.items[].product.categories

Array of object

Optional

ctx.wishlist.items[].product.categories[].id

Integer

Required

ctx.wishlist.items[].product.categories[].name

String

Required

ctx.wishlist.items[].product.categories[].slug

String

Required

ctx.wishlist.items[].product.categories[].url

URL

Required

ctx.wishlist.items[].product.display_variant

Variant or null

Optional; may be null

ctx.wishlist.items[].product.featured_image

Object or null

Optional; may be null

ctx.wishlist.items[].product.featured_image.alt_text

String or null

Required; may be null

ctx.wishlist.items[].product.featured_image.height

Integer or null

Required; may be null

ctx.wishlist.items[].product.featured_image.media_type

String (image, video, model_3d)

Required

ctx.wishlist.items[].product.featured_image.mime_type

String

Optional

The 3D file's type, on model_3d items only: model/gltf-binary (.glb) or model/vnd.usdz+zip (.usdz). renders a .glb; show a .usdz's preview_image with an <a rel="ar"> link for iOS Quick Look.

ctx.wishlist.items[].product.featured_image.model_viewer_url

URL

Optional

On model_3d items only: the platform's web component (a pinned build served from the store's domain, cached for good). Load it once per page with <script type="module" src="…">, then render the model with <model-viewer src="{{ media.url }}" poster="…" camera-controls ar ar-modes="webxr scene-viewer quick-look">; on iOS it builds the AR file from the .glb.

ctx.wishlist.items[].product.featured_image.preview_image

Object or null

Required; may be null

ctx.wishlist.items[].product.featured_image.preview_image.url

URL

Required

ctx.wishlist.items[].product.featured_image.url

URL

Required

ctx.wishlist.items[].product.featured_image.width

Integer or null

Required; may be null

ctx.wishlist.items[].product.id

Integer

Required

ctx.wishlist.items[].product.in_carts

Integer

Optional

ctx.wishlist.items[].product.inventory_status

String

Optional

ctx.wishlist.items[].product.is_gift_card

Boolean

Optional

ctx.wishlist.items[].product.media

Object or null

Required; may be null

ctx.wishlist.items[].product.media.alt_text

String or null

Required; may be null

ctx.wishlist.items[].product.media.is_image

Boolean

Required

ctx.wishlist.items[].product.media.url

URL

Required

ctx.wishlist.items[].product.metafields

Metafields

Optional

ctx.wishlist.items[].product.offers

Array of card offer

Optional

ctx.wishlist.items[].product.options

Array of object

Optional

ctx.wishlist.items[].product.options[].attribute_name

String

Required

ctx.wishlist.items[].product.options[].attribute_slug

String

Required

ctx.wishlist.items[].product.options[].sub_type

String

Required

ctx.wishlist.items[].product.options[].values

Array of object

Required

ctx.wishlist.items[].product.options[].values[].color

String or null

Required; may be null

ctx.wishlist.items[].product.options[].values[].image

Object or null

Required; may be null

The option's image as media (url, alt_text, width, height): for image attributes, so a swatch can carry alt text and reserve the photo's own shape. Null when the option has no image.

ctx.wishlist.items[].product.options[].values[].image.alt_text

String or null

Required; may be null

ctx.wishlist.items[].product.options[].values[].image.height

Integer or null

Required; may be null

ctx.wishlist.items[].product.options[].values[].image.media_type

String (image, video, model_3d)

Required

ctx.wishlist.items[].product.options[].values[].image.mime_type

String

Optional

The 3D file's type, on model_3d items only: model/gltf-binary (.glb) or model/vnd.usdz+zip (.usdz). renders a .glb; show a .usdz's preview_image with an <a rel="ar"> link for iOS Quick Look.

ctx.wishlist.items[].product.options[].values[].image.model_viewer_url

URL

Optional

On model_3d items only: the platform's web component (a pinned build served from the store's domain, cached for good). Load it once per page with <script type="module" src="…">, then render the model with <model-viewer src="{{ media.url }}" poster="…" camera-controls ar ar-modes="webxr scene-viewer quick-look">; on iOS it builds the AR file from the .glb.

ctx.wishlist.items[].product.options[].values[].image.preview_image

Object or null

Required; may be null

ctx.wishlist.items[].product.options[].values[].image.preview_image.url

URL

Required

ctx.wishlist.items[].product.options[].values[].image.url

URL

Required

ctx.wishlist.items[].product.options[].values[].image.width

Integer or null

Required; may be null

ctx.wishlist.items[].product.options[].values[].image_url

String or null

Required; may be null

The option's image file (image attributes); null when it has none. The same file as image.url.

ctx.wishlist.items[].product.options[].values[].label

String

Required

ctx.wishlist.items[].product.options[].values[].value

String

Required

ctx.wishlist.items[].product.price

Object or null

Optional; may be null

ctx.wishlist.items[].product.price.currency_code

String

Required

ctx.wishlist.items[].product.price.current

Object

Required

ctx.wishlist.items[].product.price.current.amount

Decimal string

Required

ctx.wishlist.items[].product.price.current.currency_code

String

Required

ctx.wishlist.items[].product.price.current_amount

Decimal string

Required

ctx.wishlist.items[].product.price.lowest_price_30d

Object or null

Optional; may be null

The lowest price paid in the 30 days before the current price took effect ({amount, currency_code}, for the money filter); the current price itself is not counted, so a price that was as low earlier in that window shows that earlier price. Shown next to a price reduction as its reference price, for example "Lowest price in the last 30 days: {{ price.lowest_price_30d | money }}" when on_sale. On product pages (the product and its variants) and on product cards (the price the card shows: its variant's when it shows one, such as the matching variant of a filtered list), read for the whole list at once when a template first uses it; null when no earlier price is recorded.

ctx.wishlist.items[].product.price.lowest_price_30d.amount

Decimal string

Required

ctx.wishlist.items[].product.price.lowest_price_30d.currency_code

String

Required

ctx.wishlist.items[].product.price.on_sale

Boolean

Required

ctx.wishlist.items[].product.price.price_history

Array of object

Optional

The price paid over the last 90 days, oldest first: each point is {date, amount, currency_code}, the price in force from date on (date is RFC 3339 in the store's timezone; amount goes through the money filter like current). The first point is the price in force when the window opened, dated at its start; then every change since, at most 30 points. In the shopper's currency, with the same tax display as current (its primary amount). On product pages only (the product's price and each variant's), read when a template first uses it, in one statement for the whole page; an empty list when no price is recorded. Product cards do not carry it.

ctx.wishlist.items[].product.price.price_history[].amount

Decimal string

Required

ctx.wishlist.items[].product.price.price_history[].currency_code

String

Required

ctx.wishlist.items[].product.price.price_history[].date

Timestamp

Required

ctx.wishlist.items[].product.price.regular

Object

Required

ctx.wishlist.items[].product.price.regular.amount

Decimal string

Required

ctx.wishlist.items[].product.price.regular.currency_code

String

Required

ctx.wishlist.items[].product.price.regular_amount

Decimal string

Required

ctx.wishlist.items[].product.price.sale

Object

Optional

ctx.wishlist.items[].product.price.sale.amount

Decimal string

Required

ctx.wishlist.items[].product.price.sale.currency_code

String

Required

ctx.wishlist.items[].product.price.sale_amount

String or null

Required; may be null

ctx.wishlist.items[].product.price.sale_ends_at

Timestamp or null

Optional; may be null

When the merchant's scheduled sale ends (RFC 3339 in the store's timezone with its offset); null when the sale has no end date.

ctx.wishlist.items[].product.price.sale_starts_at

Timestamp or null

Optional; may be null

When the merchant's scheduled sale starts (RFC 3339 in the store's timezone with its offset); null when the sale has no start date. Use on_sale for whether a sale is running now.

ctx.wishlist.items[].product.price.tax_display

Object

Optional

ctx.wishlist.items[].product.price.tax_display.current

Object

Required

ctx.wishlist.items[].product.price.tax_display.current.entered

Object

Required

ctx.wishlist.items[].product.price.tax_display.current.entered.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.current.entered.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.current.entered.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.current.exclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.current.exclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.current.exclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.current.exclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.current.inclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.current.inclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.current.inclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.current.inclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.current.mode

String (inclusive, exclusive)

Required

ctx.wishlist.items[].product.price.tax_display.current.primary

Object

Required

ctx.wishlist.items[].product.price.tax_display.current.primary.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.current.primary.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.current.primary.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.current.status

String (exact, estimated, unavailable, not_applicable, not_collected)

Required

ctx.wishlist.items[].product.price.tax_display.current.tax_amount

Object

Required

ctx.wishlist.items[].product.price.tax_display.current.tax_amount.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.current.tax_amount.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.regular

Object

Required

ctx.wishlist.items[].product.price.tax_display.regular.entered

Object

Required

ctx.wishlist.items[].product.price.tax_display.regular.entered.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.regular.entered.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.regular.entered.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.regular.exclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.regular.exclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.regular.exclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.regular.exclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.regular.inclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.regular.inclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.regular.inclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.regular.inclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.regular.mode

String (inclusive, exclusive)

Required

ctx.wishlist.items[].product.price.tax_display.regular.primary

Object

Required

ctx.wishlist.items[].product.price.tax_display.regular.primary.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.regular.primary.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.regular.primary.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.regular.status

String (exact, estimated, unavailable, not_applicable, not_collected)

Required

ctx.wishlist.items[].product.price.tax_display.regular.tax_amount

Object

Required

ctx.wishlist.items[].product.price.tax_display.regular.tax_amount.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.regular.tax_amount.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.sale

Object

Optional

ctx.wishlist.items[].product.price.tax_display.sale.entered

Object

Required

ctx.wishlist.items[].product.price.tax_display.sale.entered.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.sale.entered.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.sale.entered.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.sale.exclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.sale.exclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.sale.exclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.sale.exclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.sale.inclusive

Object

Optional

ctx.wishlist.items[].product.price.tax_display.sale.inclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.sale.inclusive.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.sale.inclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.sale.mode

String (inclusive, exclusive)

Required

ctx.wishlist.items[].product.price.tax_display.sale.primary

Object

Required

ctx.wishlist.items[].product.price.tax_display.sale.primary.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.sale.primary.currency_code

String

Required

ctx.wishlist.items[].product.price.tax_display.sale.primary.tax_included

Boolean

Required

ctx.wishlist.items[].product.price.tax_display.sale.status

String (exact, estimated, unavailable, not_applicable, not_collected)

Required

ctx.wishlist.items[].product.price.tax_display.sale.tax_amount

Object

Required

ctx.wishlist.items[].product.price.tax_display.sale.tax_amount.amount

Decimal string

Required

ctx.wishlist.items[].product.price.tax_display.sale.tax_amount.currency_code

String

Required

ctx.wishlist.items[].product.price.variant_id

Integer or null

Optional; may be null

The variant whose price this is (a variable product's "from" price); null when it is not one variant's price.

ctx.wishlist.items[].product.price_range

Object or null

Optional; may be null

ctx.wishlist.items[].product.price_range.currency_code

String

Required

ctx.wishlist.items[].product.price_range.has_range

Boolean

Required

ctx.wishlist.items[].product.price_range.max

Object

Required

ctx.wishlist.items[].product.price_range.max.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.max.currency_code

String

Required

ctx.wishlist.items[].product.price_range.max_amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.max_variant_id

Integer or null

Optional; may be null

The variant priced at max_amount.

ctx.wishlist.items[].product.price_range.min

Object

Required

ctx.wishlist.items[].product.price_range.min.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.min.currency_code

String

Required

ctx.wishlist.items[].product.price_range.min_amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.min_variant_id

Integer or null

Optional; may be null

The variant priced at min_amount.

ctx.wishlist.items[].product.price_range.tax_display

Object

Optional

ctx.wishlist.items[].product.price_range.tax_display.max

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.max.entered

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.max.entered.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.max.entered.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.max.entered.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.max.exclusive

Object

Optional

ctx.wishlist.items[].product.price_range.tax_display.max.exclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.max.exclusive.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.max.exclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.max.inclusive

Object

Optional

ctx.wishlist.items[].product.price_range.tax_display.max.inclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.max.inclusive.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.max.inclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.max.mode

String (inclusive, exclusive)

Required

ctx.wishlist.items[].product.price_range.tax_display.max.primary

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.max.primary.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.max.primary.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.max.primary.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.max.status

String (exact, estimated, unavailable, not_applicable, not_collected)

Required

ctx.wishlist.items[].product.price_range.tax_display.max.tax_amount

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.max.tax_amount.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.max.tax_amount.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.min

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.min.entered

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.min.entered.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.min.entered.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.min.entered.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.min.exclusive

Object

Optional

ctx.wishlist.items[].product.price_range.tax_display.min.exclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.min.exclusive.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.min.exclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.min.inclusive

Object

Optional

ctx.wishlist.items[].product.price_range.tax_display.min.inclusive.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.min.inclusive.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.min.inclusive.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.min.mode

String (inclusive, exclusive)

Required

ctx.wishlist.items[].product.price_range.tax_display.min.primary

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.min.primary.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.min.primary.currency_code

String

Required

ctx.wishlist.items[].product.price_range.tax_display.min.primary.tax_included

Boolean

Required

ctx.wishlist.items[].product.price_range.tax_display.min.status

String (exact, estimated, unavailable, not_applicable, not_collected)

Required

ctx.wishlist.items[].product.price_range.tax_display.min.tax_amount

Object

Required

ctx.wishlist.items[].product.price_range.tax_display.min.tax_amount.amount

Decimal string

Required

ctx.wishlist.items[].product.price_range.tax_display.min.tax_amount.currency_code

String

Required

ctx.wishlist.items[].product.price_tiers

Array of price tier

Optional

ctx.wishlist.items[].product.published_at

Timestamp or null

Optional; may be null

ctx.wishlist.items[].product.purchase_state

String (in_stock, unavailable, on_request)

Optional

ctx.wishlist.items[].product.quantity_available

Integer or null

Optional; may be null

ctx.wishlist.items[].product.rating

Object

Optional

ctx.wishlist.items[].product.rating.average

Number

Required

ctx.wishlist.items[].product.rating.count

Integer

Required

ctx.wishlist.items[].product.requested_options

Array of object

Optional

ctx.wishlist.items[].product.requested_options[].attribute_name

String

Required

ctx.wishlist.items[].product.requested_options[].attribute_slug

String

Required

ctx.wishlist.items[].product.requested_options[].option_label

String

Required

ctx.wishlist.items[].product.requested_options[].option_value

String

Required

ctx.wishlist.items[].product.sales_count

Integer

Optional

ctx.wishlist.items[].product.secondary_image

Object or null

Optional; may be null

ctx.wishlist.items[].product.secondary_image.alt_text

String or null

Required; may be null

ctx.wishlist.items[].product.secondary_image.height

Integer or null

Required; may be null

ctx.wishlist.items[].product.secondary_image.media_type

String (image, video, model_3d)

Required

ctx.wishlist.items[].product.secondary_image.mime_type

String

Optional

The 3D file's type, on model_3d items only: model/gltf-binary (.glb) or model/vnd.usdz+zip (.usdz). renders a .glb; show a .usdz's preview_image with an <a rel="ar"> link for iOS Quick Look.

ctx.wishlist.items[].product.secondary_image.model_viewer_url

URL

Optional

On model_3d items only: the platform's web component (a pinned build served from the store's domain, cached for good). Load it once per page with <script type="module" src="…">, then render the model with <model-viewer src="{{ media.url }}" poster="…" camera-controls ar ar-modes="webxr scene-viewer quick-look">; on iOS it builds the AR file from the .glb.

ctx.wishlist.items[].product.secondary_image.preview_image

Object or null

Required; may be null

ctx.wishlist.items[].product.secondary_image.preview_image.url

URL

Required

ctx.wishlist.items[].product.secondary_image.url

URL

Required

ctx.wishlist.items[].product.secondary_image.width

Integer or null

Required; may be null

ctx.wishlist.items[].product.selected_options

Array of object

Optional

ctx.wishlist.items[].product.selected_options[].attribute_name

String

Required

ctx.wishlist.items[].product.selected_options[].attribute_slug

String

Required

ctx.wishlist.items[].product.selected_options[].option_label

String

Required

ctx.wishlist.items[].product.selected_options[].option_value

String

Required

ctx.wishlist.items[].product.selected_variant

Variant or null

Optional; may be null

ctx.wishlist.items[].product.selection_complete

Boolean

Optional

ctx.wishlist.items[].product.session_state

Object

Optional

ctx.wishlist.items[].product.session_state.cart

Object

Required

ctx.wishlist.items[].product.session_state.cart.direct_line_count

Integer

Required

ctx.wishlist.items[].product.session_state.cart.direct_quantity

Integer

Required

ctx.wishlist.items[].product.session_state.cart.line_count

Integer

Required

ctx.wishlist.items[].product.session_state.cart.quantity

Integer

Required

ctx.wishlist.items[].product.session_state.wishlist

Object

Required

ctx.wishlist.items[].product.session_state.wishlist.direct_item_count

Integer

Required

ctx.wishlist.items[].product.session_state.wishlist.direct_saved

Boolean

Required

ctx.wishlist.items[].product.session_state.wishlist.item_count

Integer

Required

ctx.wishlist.items[].product.session_state.wishlist.saved

Boolean

Required

ctx.wishlist.items[].product.short_description

String or null

Optional; may be null

ctx.wishlist.items[].product.slug

String or null

Required; may be null

ctx.wishlist.items[].product.tag_refs

Array of object

Optional

ctx.wishlist.items[].product.tag_refs[].id

Integer

Required

ctx.wishlist.items[].product.tag_refs[].name

String

Required

The tag's name in the shopper's language (the source name when it has no translation).

ctx.wishlist.items[].product.tag_refs[].slug

String

Required

The tag's slug: the same in every language, and the value the tags filter takes (filter.tags=). Tags have no page of their own.

ctx.wishlist.items[].product.tag_refs[].url

URL

Required

The shop filtered by this tag while the store's tag filter is on; otherwise search results for the tag's name while search returns products, else the shop.

ctx.wishlist.items[].product.tags

Array of string

Optional

ctx.wishlist.items[].product.title

String or null

Required; may be null

ctx.wishlist.items[].product.type

String

Optional

ctx.wishlist.items[].product.url

URL

Optional

ctx.wishlist.items[].product.variant_matrix

Array of variant matrix row

Optional

ctx.wishlist.items[].product.variants

Array of object

Optional

ctx.wishlist.items[].product.variants[].available_for_sale

Boolean

Required

ctx.wishlist.items[].product.variants[].id

Integer

Required

ctx.wishlist.items[].product.variants[].price

Object

Optional

ctx.wishlist.items[].product.variants[].price.current

Money input

Required

ctx.wishlist.items[].product.variants[].price.on_sale

Boolean

Required

ctx.wishlist.items[].product.variants[].price.regular

Money input

Required

ctx.wishlist.items[].product.variants[].selected_options

Array of object

Required

ctx.wishlist.items[].product.variants[].selected_options[].attribute_name

String

Required

ctx.wishlist.items[].product.variants[].selected_options[].attribute_slug

String

Required

ctx.wishlist.items[].product.variants[].selected_options[].label

String

Required

ctx.wishlist.items[].product.variants[].selected_options[].value

String

Required

ctx.wishlist.items[].product.variants[].session_state

Object

Optional

ctx.wishlist.items[].product.variants[].session_state.cart

Object

Required

ctx.wishlist.items[].product.variants[].session_state.cart.direct_line_count

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.cart.direct_quantity

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.cart.line_count

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.cart.quantity

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.wishlist

Object

Required

ctx.wishlist.items[].product.variants[].session_state.wishlist.direct_item_count

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.wishlist.direct_saved

Boolean

Required

ctx.wishlist.items[].product.variants[].session_state.wishlist.item_count

Integer

Required

ctx.wishlist.items[].product.variants[].session_state.wishlist.saved

Boolean

Required

ctx.wishlist.items[].product.variants[].title

String

Required

ctx.wishlist.items[].product.vendor

String or null

Optional; may be null

ctx.wishlist.items[].product.vendor_url

URL or null

Optional; may be null

ctx.wishlist.items[].product_id

Integer

Required

ctx.wishlist.items[].properties

Line properties

Optional

ctx.wishlist.items[].purchase_state

String

Required

ctx.wishlist.items[].variant

Object or null

Required; may be null

ctx.wishlist.items[].variant.id

Integer

Required

ctx.wishlist.items[].variant.media

Object or null

Required; may be null

ctx.wishlist.items[].variant.media.alt_text

String or null

Required; may be null

ctx.wishlist.items[].variant.media.is_image

Boolean

Required

ctx.wishlist.items[].variant.media.url

URL

Required

ctx.wishlist.items[].variant.options

Array of object

Required

ctx.wishlist.items[].variant.options[].name

String

Required

ctx.wishlist.items[].variant.options[].value

String

Required

ctx.wishlist.items[].variant.sku

String or null

Required; may be null

ctx.wishlist.items[].variant.title

String or null

Required; may be null

ctx.wishlist.items[].variant_id

Integer or null

Required; may be null

ctx.wishlist.login_required

Boolean

Required

ctx.reviews#

Product review availability, aggregates, filters, and approved review rows. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.reviews

Object

Declared root

ctx.reviews.can_review

Boolean

Optional

Whether this shopper can review this product now, by the rules /reviews/submit applies: reviews on, a signed-in customer or a guest review the store allows, a purchase of the product when the store asks for one (an order invitation counts), and one review per customer (or browser session) per product. Show the review form when true. Absent off product pages, and when it could not be worked out.

ctx.reviews.cannot_review_message

String

Optional

cannot_review_reason worded for the shopper in their language (the store's own wording when it changed the message). Show it in place of the review form, with a sign-in link for sign_in_required. Absent when can_review is true.

ctx.reviews.cannot_review_reason

String (reviews_off, sign_in_required, purchase_required, already_reviewed, session_required, unavailable)

Optional

Why can_review is false: reviews_off (the store has reviews turned off), sign_in_required (the store takes reviews from signed-in customers only), purchase_required (the store takes reviews from buyers of this product only), already_reviewed (this shopper has reviewed this product), session_required (no browser session to hold a guest's review) or unavailable (this product takes no new reviews). Absent when can_review is true.

ctx.reviews.enabled

Boolean

Required

ctx.reviews.has_more

Boolean

Optional

ctx.reviews.items

Array of object

Optional

ctx.reviews.items[].content

String

Required

ctx.reviews.items[].created_at

String

Required

ctx.reviews.items[].created_at_iso

Timestamp

Required

ctx.reviews.items[].edited

Boolean

Required

ctx.reviews.items[].helpful_count

Integer

Required

ctx.reviews.items[].id

String

Required

ctx.reviews.items[].images

Array of object

Optional

ctx.reviews.items[].images[].height

Integer

Required

ctx.reviews.items[].images[].url

URL

Required

ctx.reviews.items[].images[].width

Integer

Required

ctx.reviews.items[].imported

Boolean

Required

ctx.reviews.items[].my_vote

String (helpful, unhelpful) or null

Optional; may be null

The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read.

ctx.reviews.items[].rating

Integer

Required

ctx.reviews.items[].reviewer_name

String

Required

ctx.reviews.items[].store_response

Object

Optional

ctx.reviews.items[].store_response.content

String

Required

ctx.reviews.items[].store_response.created_at

String

Optional

ctx.reviews.items[].store_response.created_at_iso

Timestamp

Optional

ctx.reviews.items[].title

String

Optional

ctx.reviews.items[].unhelpful_count

Integer

Required

ctx.reviews.items[].variant_id

Integer

Optional

ctx.reviews.items[].variant_options

Array of object

Optional

The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists.

ctx.reviews.items[].variant_options[].name

String

Required

ctx.reviews.items[].variant_options[].value

String

Required

ctx.reviews.items[].verification_source

String

Optional

ctx.reviews.items[].verified_purchase

Boolean

Required

ctx.reviews.page

Integer

Optional

ctx.reviews.per_page

Integer

Optional

ctx.reviews.rating_filter

Integer

Optional

ctx.reviews.sort

String

Optional

ctx.reviews.stats

Object

Optional

ctx.reviews.stats.average

Number

Required

ctx.reviews.stats.count

Integer

Required

ctx.reviews.stats.stars

Object keyed by name

Required

ctx.reviews.stats.stars.{key}

Integer

Dynamic key

ctx.reviews.total

Integer

Optional

ctx.store_reviews#

Store-wide approved reviews with product links and pagination. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.store_reviews

Object

Declared root

ctx.store_reviews.enabled

Boolean

Required

ctx.store_reviews.items

Array of object

Optional

ctx.store_reviews.items[].content

String

Required

ctx.store_reviews.items[].created_at

String

Required

ctx.store_reviews.items[].created_at_iso

Timestamp

Required

ctx.store_reviews.items[].edited

Boolean

Required

ctx.store_reviews.items[].helpful_count

Integer

Required

ctx.store_reviews.items[].id

String

Required

ctx.store_reviews.items[].images

Array of object

Optional

ctx.store_reviews.items[].images[].height

Integer

Required

ctx.store_reviews.items[].images[].url

URL

Required

ctx.store_reviews.items[].images[].width

Integer

Required

ctx.store_reviews.items[].imported

Boolean

Required

ctx.store_reviews.items[].my_vote

String (helpful, unhelpful) or null

Optional; may be null

The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read.

ctx.store_reviews.items[].product

Object

Required

ctx.store_reviews.items[].product.id

Integer

Required

ctx.store_reviews.items[].product.title

String

Required

ctx.store_reviews.items[].product.url

URL

Required

ctx.store_reviews.items[].rating

Integer

Required

ctx.store_reviews.items[].reviewer_name

String

Required

ctx.store_reviews.items[].store_response

Object

Optional

ctx.store_reviews.items[].store_response.content

String

Required

ctx.store_reviews.items[].store_response.created_at

String

Optional

ctx.store_reviews.items[].store_response.created_at_iso

Timestamp

Optional

ctx.store_reviews.items[].title

String

Optional

ctx.store_reviews.items[].unhelpful_count

Integer

Required

ctx.store_reviews.items[].variant_id

Integer

Optional

ctx.store_reviews.items[].variant_options

Array of object

Optional

The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists.

ctx.store_reviews.items[].variant_options[].name

String

Required

ctx.store_reviews.items[].variant_options[].value

String

Required

ctx.store_reviews.items[].verification_source

String

Optional

ctx.store_reviews.items[].verified_purchase

Boolean

Required

ctx.store_reviews.page

Integer

Optional

ctx.store_reviews.rating_filter

Integer

Optional

ctx.store_reviews.sort

String

Optional

ctx.store_reviews.stats

Object

Optional

ctx.store_reviews.stats.average

Number

Required

ctx.store_reviews.stats.count

Integer

Required

ctx.store_reviews.stats.stars

Object keyed by name

Required

ctx.store_reviews.stats.stars.{key}

Integer

Dynamic key

ctx.store_reviews.total

Integer

Optional

ctx.store_reviews.total_pages

Integer

Optional

ctx.review_photos#

The store's newest approved reviews with photos, with product links, for any page. Loaded when a section declares it in ctx_needs.

Field

Type

Requirement

Description

ctx.review_photos

Object

Declared root

ctx.review_photos.enabled

Boolean

Required

False when the store has reviews turned off; items is then absent.

ctx.review_photos.items

Array of object

Optional

Up to 24 of the store's newest approved reviews of active products that have at least one photo, newest first, each with its product. Narrow them in the template (for example by rating or verified_purchase) and show as many as the design needs.

ctx.review_photos.items[].content

String

Required

ctx.review_photos.items[].created_at

String

Required

ctx.review_photos.items[].created_at_iso

Timestamp

Required

ctx.review_photos.items[].edited

Boolean

Required

ctx.review_photos.items[].helpful_count

Integer

Required

ctx.review_photos.items[].id

String

Required

ctx.review_photos.items[].images

Array of object

Optional

ctx.review_photos.items[].images[].height

Integer

Required

ctx.review_photos.items[].images[].url

URL

Required

ctx.review_photos.items[].images[].width

Integer

Required

ctx.review_photos.items[].imported

Boolean

Required

ctx.review_photos.items[].my_vote

String (helpful, unhelpful) or null

Optional; may be null

The shopper's own vote on this review: helpful, unhelpful, or null when they have not voted (a signed-in customer's vote counts on every device; a guest's belongs to their browser session). Show that button pressed after a reload, and post vote=none to /reviews/vote when it is pressed again to take the vote back. Absent only when the shopper's votes could not be read.

ctx.review_photos.items[].product

Object

Required

ctx.review_photos.items[].product.id

Integer

Required

ctx.review_photos.items[].product.title

String

Required

ctx.review_photos.items[].product.url

URL

Required

ctx.review_photos.items[].rating

Integer

Required

ctx.review_photos.items[].reviewer_name

String

Required

ctx.review_photos.items[].store_response

Object

Optional

ctx.review_photos.items[].store_response.content

String

Required

ctx.review_photos.items[].store_response.created_at

String

Optional

ctx.review_photos.items[].store_response.created_at_iso

Timestamp

Optional

ctx.review_photos.items[].title

String

Optional

ctx.review_photos.items[].unhelpful_count

Integer

Required

ctx.review_photos.items[].variant_id

Integer

Optional

ctx.review_photos.items[].variant_options

Array of object

Optional

The options of the variant the reviewer bought, as {name, value} pairs in the product's option order and the shopper's language, for a line such as "bought S". Absent when the review names no variant or the variant no longer exists.

ctx.review_photos.items[].variant_options[].name

String

Required

ctx.review_photos.items[].variant_options[].value

String

Required

ctx.review_photos.items[].verification_source

String

Optional

ctx.review_photos.items[].verified_purchase

Boolean

Required