Using the Account Selector Fragment Set

Important

Currently, this feature is behind a release feature flag (LPD-58472). Read Release Feature Flags for more information.

The Account Selector fragment set is a collection of fragments that form the account selector interface. Users can manage their accounts and orders directly in the page, without navigating away.

Adding the Account Selector Fragment

  1. Open the target page and click Edit (Edit icon).

  2. In the page editor’s Components tab (Components Tab Icon), search for the Account Selector fragment grouped under Account Selector.

  3. Drag and drop the Account Selector fragment in the page. Internal drop zones are created automatically for adding the other fragments.

  4. Add one or more of the remaining fragments from the set to the drop zones, based on your preferences.

  5. Click Publish.

The set includes seven fragments. Add all or some of them to the drop zones inside the Account Selector fragment to create your interface.

Search for the Account Selector Fragment in the page editor's Components tab.

Note

The fragments in the Account Selector fragment set appear under Account Selector. A distinct, non-customizable Account Selector fragment also exists under Account and provides the same functionality as a single, pre-assembled block.

FragmentFunction
Account Orders Data SetDisplays a list of orders by their ID, status, and last modified date.
Account SelectorThe main container for the set, for organizing other fragments inside internal drop zones.
Account Selector ButtonA button for switching between accounts, with customizable options (e.g., show account info, enable search).
Account Selector PanelAn organizer structured as a slider component containing cascaded fragments.
Account Data SetAdds a data set showing a list of accounts with their profile images.
Create Account ButtonA button for creating a new account with required and optional fields.
Create Order ButtonA button for creating a new order with the items in the cart.

Customizing the Account Selector: Hide Orders List

Liferay DXP 2025.Q3

Important

Currently, this feature is behind a release feature flag (LPD-58472). Read Release Feature Flags for more information.

With the proper permissions, you can configure the Account Selector component to hide the orders list for specific channels. This is useful in commerce environments that support only one order per channel, where listing multiple orders is unnecessary.

  1. Open the Global Menu (Global Menu), go to the Commerce tab, and click Channels.

  2. Select a channel.

  3. In the General tab under Orders, enable Hide Orders List in the Account Selector.

Enabling the option hides the orders list, but existing orders are still accessible.

Enable the Hide Orders List in the Account Selection option to remove the orders list from the Account Selector.