Account page uses user layout. Customers can manage and edit their information on this page.
These tab’s active state depends on ms.routeParams.action.
Account page may have other tabs based on design theme variables.
ms.translate should be used with all hard-coded text.
This page mainly consists of four sections:
The personal information form is by default enabled in all StoreHippo stores. The personal information form is one of the built-in forms and is used to control the user personal information on the storefront. You can find and edit personal_info in the form in Site > Forms section in StoreHippo Admin Panel.
You can use ms.form.user_details widget to show the Personal information form in the store. The widget uses the personal_info and edits a user personal information using the data filled by the user. Use the following code to add the personal_info form:
<form ms-widget="ms.form.user_details" ms-data-formname="personal_info" ng-submit="submit()">
<div ms-widget="form_layout" ms-data-buttonname="Save"></div>
</form>
<form ms-widget="ms.form.add_address" ms-data-formname="user_address" ng-submit="submit()">
<div ms-widget="form_layout" ms-data-buttonname="Save Address"></div>
</form>
<form ms-widget="ms.form.edit_address" ms-data-formname="edit_user_address" ng-submit="submit()">
<div ms-widget="form_layout" ms-data-buttonname="Update Address"></div>
</form>
A customer can edit his basic details in this section. Entity updated is ms.users. Basic fields updated are first_name, last_name, contact and dob. Email should not be updated. One may add any other fields from ms.users entity to the form.
A customer can add new addresses and edit his address details in this section. Entity updated is ms.users. It has two forms, one to add more addresses and another to update any address.
A customer can view his wishlist items details in this section. The entity used is ms.users. He can move the item to the cart or remove it from wishlist.
A customer can view his past orders details in this section. The entity used is ms.orders. He can view detail of each order from page/account/order-history/{{order._id}}.
We have option in design theme to show wallet. Follow these steps: