Skip to main content

Block

Use block targets to build general-purpose extensions that merchants can reposition using the checkout and accounts editor.

  • Product upsell: Read cart contents and display recommendations for complementary products that buyers can add at checkout.
  • Trust badges: Show security seals, money-back guarantees, or satisfaction badges to build buyer confidence.
  • Loyalty program: Display the buyer's loyalty points balance, and encourage checkout completion by showing how many points the current order would earn.
  • Brand messaging: Add custom banners that the merchant controls through the checkout and accounts editor to reflect their store's look and feel.
  • Custom fields: Collect additional information from buyers, such as gift-wrap preferences or delivery instructions, and store the data as cart metafields.

Block targets can be displayed across different areas of checkout, unlike static extension targets, which render at fixed locations.

purchase.checkout.block.render

A block extension target that isn't tied to a specific checkout section or feature. Merchants control the placement using the checkout and accounts editor.

Note

During development, you can preview the target at different locations by using a URL parameter.

API properties provide read access to cart contents, buyer identity, and delivery details. To store custom data, use the Metafields API to write cart metafields. Use cart instructions to check which mutations are available before making API calls.

Support
Components (55)
APIs (24)

  • Design for flexible placement: The merchant controls where block extensions appear, so avoid assumptions about surrounding content. Test the extension in multiple supported locations to confirm it renders well in each.

Anchor to Placement referencesPlacement references

During development, preview each supported placement by appending ?placement-reference={name} to the checkout URL printed by Shopify CLI. For example, ?placement-reference=INFORMATION1 previews the extension above the contact information section.

You can also set default_placement in your extension's TOML configuration file to recommend an initial placement to merchants in the checkout and accounts editor.

ReferenceLocation
WALLETS1Above the express checkout buttons (Shop Pay, Apple Pay, and Google Pay). Disabled when express checkout isn't shown.
INFORMATION1Above the contact information section, as the first element on the Information step.
INFORMATION2Below the contact information section and its purchase.checkout.contact.render-after static extensions, above the shipping or delivery address.
INFORMATION3Below the delivery method selector. Renders in place of the delivery method selector when shipping isn't required (for example, for digital goods).
DELIVERY1Above the shipping methods section, as the first element on the Shipping step.
DELIVERY2Below the shipping methods section.
PAYMENT1Above the payment section, as the first element on the Payment step (before error banners, tips, and payment methods).
ORDER_SUMMARY1Above the line items in the order summary sidebar.
ORDER_SUMMARY2Below the line items in the order summary sidebar, after the purchase.checkout.cart-line-list.render-after static target.
ORDER_SUMMARY3Above the money lines (subtotal, shipping, taxes, and total) in the order summary sidebar.
ORDER_SUMMARY4Below the money lines in the order summary sidebar.

PAYMENT2, PAYMENT3, and PAYMENT4 shift depending on whether tips are enabled:

ReferenceWith tips enabledWithout tips
PAYMENT2After the tips section.After payment methods and gift card redemption.
PAYMENT3After payment methods and gift card redemption.After the billing address selector.
PAYMENT4After the billing address selector.After the Remember me section.

Placement behavior changes in one-page checkout:

  • INFORMATION3 is disabled.
  • DELIVERY2 is disabled and swaps to the nearest valid placement.
  • DELIVERY1 renders after the delivery methods section instead of before it.
  • PAYMENT3 and PAYMENT4 might be disabled depending on tip payments and shipping requirements.
  • ORDER_SUMMARY4 renders below the Pay button on mobile only.

Was this page helpful?