Loading

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

Дата публикации: May 1, 2026
Описание

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.

Решение

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.

Номер статьи базы знаний

005321523

 
Загрузка
Salesforce Help | Article