thegeneralyst/AnopaDocs
Market

Market Content

Conditionally renders its children only when the active market matches a specified market handle or list of handles.

What it does

Market Content conditionally renders its children only when the active market matches a specified handle or list of handles. Use it to show region-specific content — banners, payment icons, legal copy, shipping messages — for one or more markets.

How to set it up

Wrap your market-specific content with Market Content. Set Markets to a comma-separated list of Shopify market handles (for example: gb,us,ca). The content renders only when the active market handle is in that list.

On the canvas it always renders its children so you can design freely, regardless of the currently active market.

Key behaviours

  • Renders children when activeMarket.handle is in the configured list of handles
  • Renders nothing at all (no wrapper DOM) when the active market does not match
  • On canvas, always renders children to support design work
  • Invert mode: when enabled, renders children only when the active market handle is not in the configured list

Property Controls

ControlTypeDefaultDescription
MarketsStringComma-separated Shopify market handles to match (e.g. `gb,us,ca`). Children render only when `activeMarket.handle` is in this list.
InvertBooleanfalseWhen true, renders children only when the active market handle is NOT in the Markets list.