Loading

B2B Commerce: Change the Display Order of Accounts in the Account Switcher

Publiceringsdatum: May 1, 2026
Beskrivning

The standard Account Switcher in B2B Commerce does not support custom sorting and lists accounts alphabetically. To change the order, a custom component must be created and configured.

Lösning

Since the standard Account Switcher component does not provide a built-in feature to edit the display order, you must implement a custom solution. You can refer to the b2b-commerce-open-source-components repository on GitHub as a baseline for your development:

  1. Review the myAccountSwitcherModal code in the b2b-commerce-open-source-components repository to understand the implementation.

  2. Create a new custom component by applying your specific account sorting logic to the code.

  3. Configure your store to use this custom component instead of the standard Account Switcher.

Knowledge-artikelnummer

005321523

 
Laddar
Salesforce Help | Article