Decide extension placement
When you're deciding where to place a customer account extension, consider how the extension relates to the surrounding information on the page, and where it might fit within the existing page structure. You can place extensions on the Order status, Profile, and Order index (order action menu) pages. Explore all extension targets.
Order status
Anchor link to section titled "Order status"The Order status page is where customers can view, track, and manage their order. Extensions such as an order action menu extension that pertain to a specific order belong on this page.
To decide the most appropriate placement for extensions on the Order status page, consider the following page areas and their primary function:
- Order status timelines: Provides updates on item delivery, pickup, or return, and information for tracking order statuses.
- Order actions: Enables a customer to manage an order.
Order summary: Contains the items in an order and the cost.
Order details: Contains the customer, shipping, and billing information for the order.
The following image displays extension targets in the context of the Order status page's layout.
Profile page
Anchor link to section titled "Profile page"The Profile page is where customers can view and edit their personal information. For B2B customers, this page also includes the company name, and the company location(s) that they have access to.
To decide the most appropriate placement for extensions on this page, consider whether your extension pertains to customer information, company information, or company location information, and choose an extension target accordingly.
For example, if your extension pertains to customer information, then the customer-account.profile.block.render
block extension target is a good fit. The target renders in both the default and B2B experiences, and merchants can customize the placement of this extension in the checkout editor.
All static extension targets available on this page render either on the default experience or the B2B experience.
Order index
Anchor link to section titled "Order index"The Order index page is where customers can view and manage all their past and current orders. The primary purpose of this page is to help customers find orders. To keep the page focused on this goal, only one block extension target, with two available placements, is available on this page. Order action menu extensions also render on this page, in both the grid view and list view.
The following image displays extension targets in the context of the Order index page:
Define default placement
Anchor link to section titled "Define default placement"When you’re using a block target, merchants can place the UI extension in any of the supported placements on the page. To recommend a specific placement to merchants, define the default placement by using the [[extensions.targeting.default_placement]]
property in the TOML file. Learn how to configure default placement.
Use the following placement references to indicate the default placement:
Placement references
Anchor link to section titled "Placement references"Here are all the placement references for each page in customer accounts.
Order index
Anchor link to section titled "Order index"Block target: customer-account.order-index.block.render
Placement references: PAGE_TITLE
, ORDER_INDEX
Order status
Anchor link to section titled "Order status"Block target: customer-account.order-status.block.render
Placement references: PAGE_TITLE
, ORDER_STATUS1
, ORDER_STATUS2
, ORDER_STATUS3
, ORDER_SUMMARY1
, ORDER_SUMMARY2
, ORDER_SUMMARY3
Block target: customer-account.profile.block.render
Placement references: PAGE_TITLE
, PROFILE1
, PROFILE2