B2B Commerce の標準の取引先スイッチャーは、取引先を名前順に表示し、カスタムの並び替えには対応していません。
表示順を変更するには、カスタムコンポーネントの作成と設定が必要です。
標準の取引先スイッチャーコンポーネントには、表示順を編集する機能が組み込まれていないため開発が必要です。
開発時の参考として、GitHub の b2b-commerce-open-source-components リポジトリを参照できます。
b2b-commerce-open-source-components リポジトリ内の myAccountSwitcherModal コードを確認し、実装方法を理解します。
取引先の並び替えロジックをコードに適用し、新しいカスタムコンポーネントを作成します。
標準の取引先スイッチャーの代わりに、作成したカスタムコンポーネントを使用するようにストアを構成します。
005321523

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.