Skip to main content
Migrate to Polaris

Version 2025-07 is the last API version to support React-based UI components. Later versions use web components, native UI elements with built-in accessibility, better performance, and consistent styling with Shopify's design system. Check out the migration guide to upgrade your extension.

Profile page (B2B)

Profile page (B2B) extensions render on the Profile page for business-to-business (B2B) customers. These targets appear alongside Shopify's native company and location management UI so customers see your extension content in direct context with their company profile.

  • Company details: Display supplementary company information, such as account manager contacts or company-specific policies.
  • Location addresses: Show additional address context for a company location, such as delivery zone restrictions or warehouse details.
  • Payment methods: Provide payment-related notices for a company location, such as credit terms or approved payment methods.
  • Staff management: Display custom staff-related information for a company location, such as role descriptions or onboarding links.
  • Custom profile content: Add app-specific content blocks to the Profile page that render for all customers, including B2B customers.

Anchor to Profile page (B2B) targetsProfile page (B2B) targets

Profile page (B2B) targets render on the Profile page for B2B customers. They're useful for adding contextual information about company details, location-specific settings, and custom content.

customer-account.profile.company-details.render-after

Renders after the company name and before the company location information on the Profile page.

Use this target to display supplementary company information such as account details, company-specific messaging, or links to external resources. This target gives you access to the Authenticated Account API, which provides company and location data through useAuthenticatedAccountPurchasingCompany() (React) or authenticatedAccount (TS).

Support
Components (63)
APIs (13)

Anchor to Company location addresses (render after) ,[object Object]Company location addresses (render after) target

customer-account.profile.company-location-addresses.render-after

Renders after the addresses section for a company location on the Profile page. A separate instance of this extension is rendered for each company location.

Use this target to display additional address information for a specific company location, such as delivery restrictions or warehouse notes. This target provides locationId to identify the current company location, and also gives you access to the Authenticated Account API.

Support
Components (63)
APIs (13)

Anchor to Company location payment (render after) ,[object Object]Company location payment (render after) target

customer-account.profile.company-location-payment.render-after

Renders after the Payment methods section for a company location on the Profile page. A separate instance of this extension is rendered for each company location.

Use this target to display payment-related information for a specific company location, such as credit terms or approved payment methods. This target provides locationId to identify the current company location, and also gives you access to the Authenticated Account API.

Support
Components (63)
APIs (13)

Anchor to Company location staff (render after) ,[object Object]Company location staff (render after) target

customer-account.profile.company-location-staff.render-after

Renders after the Staff and permissions section for a company location on the Profile page. A separate instance of this extension is rendered for each company location.

Use this target to display staff-related information for a specific company location, such as role descriptions or onboarding instructions. This target provides locationId to identify the current company location, and also gives you access to the Authenticated Account API.

Support
Components (63)
APIs (13)

customer-account.profile.block.render

Renders a block extension target on the Profile page. This target renders for all customers, including B2B customers.

Merchants can choose to place this extension in any of the supported locations. To preview your extension in each supported location, use the placement reference for that location as a URL parameter.

Support
Components (63)
APIs (13)

  • Check for B2B context: For targets that rely on B2B data, always check that useAuthenticatedAccountPurchasingCompany() (React) or authenticatedAccount?.purchasingCompany?.current (TS) is defined before rendering company-specific content. Not all customers are B2B customers.
  • Keep content contextual: Profile page extensions render alongside company and location management UI, so content should be directly relevant to the section it appears in.
  • Handle multiple instances: The company location targets (company-location-addresses, company-location-payment, company-location-staff) render a separate instance for each company location. Use locationId to differentiate between locations.
  • Avoid heavy rendering: These targets render inline within the Profile page. Avoid complex layouts or large data fetches that could cause layout shifts. Use Banner or lightweight BlockStack layouts for the best experience.

  • B2B only: The company details and company location targets only render for B2B customers, who are customers associated with a company location in the admin. They won't appear for default (non-B2B) customers.
  • Block placement: The customer-account.profile.block.render target is a block extension whose placement is controlled by the merchant. You can't programmatically control where it appears on the page.

Was this page helpful?