Bloomreach Commerce Accelerator Account Component
Info: This feature requires a standard or premium Bloomreach Content license. Contact Bloomreach for details.
Overview
The AccountFormComponent is a built-in HstComponent used to manage customer accounts in Bloomreach Commerce Accelerator applications.
When a visitor is authenticated, you can provide an account management link for the customer.
The AccountFormComponent handles account management requests by calling the commerce backend REST APIs.
Component Behavior
Rendering Phase
During the rendering phase, the component's template displays input fields for the login form, including email address and password.
Action Phase
When the account management form is submitted, AccountFormComponent performs input validation. If validation fails, it displays error messages. If validation succeeds, the component calls the CRISP API using the configured CommerceConnector and CommerceConnectorComponent (with the ID "updateCustomer"). This process updates customer account data in the commerce backend service. For details about configuring the "updateCustomer" connector component, see the commerce backend configuration documentation for supported platforms in Bloomreach Accelerator: B2C Commerce Boot.
Component Configuration
The following table lists the key configuration details for the AccountFormComponent.
| Component class | com.bloomreach.commercedxp.starterstore.components.AccountFormComponent |
| Template configuration | /hst:hst/hst:configurations/starterstoreboot/hst:templates/starterstore-account |
| Template resource | webfile:/freemarker/hstdefault/starterstore-account.ftl |
| Page configuration | /hst:hst/hst:configurations/starterstoreboot/hst:pages/account-contentpage |
| Sitemap Item configuration | /hst:hst/hst:configurations/starterstoreboot/hst:sitemap/account |