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.

Knowledge 기사 번호

005321523

 
로드 중
Salesforce Help | Article