Skip to main content

Order actions

Order pages allow customers to view and manage their purchases, including browsing order history, checking fulfillment status, and reviewing order details. Extensions on these pages help customers take action on their orders directly from customer accounts.

  • Return and exchange requests: Let customers select items to return or exchange, submit a reason, and receive a shipping label directly from the order page.
  • Reorder: Add all items from a previous order back to the cart with a single click.
  • Subscription management: Show active subscriptions tied to past orders, with options to skip, pause, or cancel.
  • Shipment tracking: Surface real-time tracking updates when a shipment is in transit.

Anchor to Order action menu targetsOrder action menu targets

Use static targets to extend the order index and order status pages with custom workflows in the order action menu.

Menu item targets render as buttons in the order action menu, while action targets open as modal overlays. The examples demonstrate fetching data from your app's backend or using the Order API.

customer-account.order.action.menu-item.render

Renders a button in the order action menu on the order index and order status pages. Use this target to add custom actions that navigate to a URL or open a modal for workflows like returns, exchanges, or reorders.

Extensions at this target can access order data through the Order API. The root element must be a single button component. Use the href prop to navigate directly, or omit it to open a modal rendered by customer-account.order.action.render.

Support
Components (62)
APIs (15)

customer-account.order.action.render

Renders a modal when a customer clicks an order action button that doesn't have an href prop set. Use this target to build multi-step workflows like return requests, order modifications, or confirmations.

Extensions at this target can access order data through the Order API and control the modal with shopify.close(). The root element must be a customer account action component.

Support
Components (62)
APIs (15)

Use static and block targets to extend the order index page with contextual content and information.

Announcement targets render as dismissable banners at the top of the page, while block targets display as inline cards that merchants can position using the checkout and accounts editor. The examples demonstrate using the Localization API or fetching data from your app's backend.

customer-account.order-index.announcement.render

Renders a dismissable announcement at the top of the order index page. Use this target to surface time-sensitive information like shipping updates, promotions, or account status changes.

Extensions at this target can access locale and currency context through the Localization API. The root element should be an announcement component.

Support
Components (62)
APIs (14)

customer-account.order-index.block.render

Renders inline content on the order index page. Use this target to display persistent information like loyalty points, subscription summaries, or account-level insights.

Extensions at this target appear as blocks that merchants can position using the checkout and accounts editor. To preview your extension in each supported location, use the placement reference for that location as a URL parameter.

Support
Components (62)
APIs (14)

  • Guard against missing data: Always check that shopify.order.value is defined before rendering order-specific content in action targets. The order data loads asynchronously and might be undefined on the initial render.
  • Keep announcements concise: The announcement component is dismissable by the customer, so long messages risk being closed before they're read. Use short, actionable text and link to modals or pages for additional detail.
  • Pair menu items with modals: When building order actions, implement both customer-account.order.action.menu-item.render (the button) and customer-account.order.action.render (the modal) in the same extension. Omit href on the button to trigger the modal automatically.

Was this page helpful?