Using the Account Selector Fragment
Available Liferay DXP 7.4 U72+/GA72+
The Account Selector fragment provides an easy way for users to switch between their accounts when browsing products and creating orders.
Adding the Account Selector Fragment to a Page
Go to the desired content page or template and click Edit ().
In the Fragments and Widgets sidebar (), search account selector.
Drag and drop the fragment onto the page. Do not mistake this fragment with the Account Management widget.
The account selector immediately shows the user’s selected account, if any exists.
Account Selector Details
After adding the account selector fragment to a page, you can click the account icon to open it. Here you can access the accounts you have permission to manage. You can also create a new order from the account selector by clicking the Create New Order button. For this to work correctly, you must have an Open Carts page.
When you have an active order, the account selector fragment displays the order number and its status right below the account name. If there’s an active workflow, the order is created with the Draft status.