Bloomreach Accelerator: B2C Commerce Account Component
Synopsis
AccountFormComponent is a built-in HstComponent to manage the customer's account in Bloomreach Accelerator: B2C Commerce applications.
Given a visitor is authenticated, an account management link can be provided for the customer.
AccountFormComponent processes the account management requests by invoking the commerce backend REST APIs.
Component Overview
Rendering phase
In rendering phase, its template is supposed to display input fields for the visitor's login form, such as e-mail address and password.
Action phase
On account management form's submission, AccountFormComponent first validates the inputs, displaying errors if validation fails; or it invokes CRISP API with the corresponding CommerceConnector and CommerceConnectorComponent (id: "updateCustomer") models, which ends up exchanging data with the commerce backend service to update the customer account data. For details on the "updateCustomer" connector component configuration, please have a look at the different commerce platform configuration pages supported in Bloomreach Accelerator: B2C Commerce Boot.
Component Details
Below are the details of the component and the related configurations.
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 |