Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

Designing Account Page

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: 

    • PERSONAL INFORMATION
    • ADDRESS BOOK
    • WISHLIST
    • ORDERS HISTORY

     

    Enabling user personal information edit form

    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.

    Using the personal information form on account page

    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>



    Enabling useraddaddress form

    The useraddaddress form is by default enabled in all StoreHippo stores. Useraddaddress form is one of the built-in forms and is used to control the user addresses on the storefront. You can find and edit user_address in the form in Site > Forms section in StoreHippo Admin Panel. 

    Using the user_address form on account page

    You can use ms.form.add_address widget to show the user add address form on the store. The widget uses the user_address form and adds a user address using the data filled by the user. Use the following code to add the user_address 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>

    Enabling user edit address form

    The user edit address form is by default enabled in all StoreHippo stores. User edit address form is one of the built-in forms and is used to control the user addresses on the storefront. You can find and edit the edit_user_address in the form in Site > Forms section in StoreHippo Admin Panel. 

    Using edit_user_address form on account page

    You can use ms.form.edit_address widget to show the user edit address form on the store. The widget uses the edit_user_address form and edits a user address using the data filled by the user. Use the following code to add the edit_user_address 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>


     

    Reference widgets

    Data Elements

    PERSONAL INFORMATION

    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.

    Note:
    • Controlleris from global widget ms.editDetail.
    • Objectthat contains user details record.
    • On form submit update(entity,record) function is used to update ms.users entity.

    ADDRESS BOOK

    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.

    Note:
    • Controlleris from global widget ms.userAddresses.
    • Arraythat contains user addresses is named addresses.
    • Each address has fields - full_name, email, phone, address, city, state, country, zip.
    • To edit address ms.user.save_address(address) function is used.
    • To add address add_address(newAddress ) function is used.

    WISHLIST

    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.

    Note:
    • Controlleris from global widget ms.userWishlist.
    • Arraythat contains wishlist items is named products.
    • To move item to cart move_wishlist_to_cart(product) function is used.
    • To remove item remove_from_wishlist(product._id) function is used.

    ORDER HISTORY

    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}}.

    Note:
    • Controlleris from global widget ms.userOrders.
    • Arraythat contains user orders is named orders.

    FAQ

    Q. How can we add wallet option on the account page?

    We have option in design theme to show wallet. Follow these steps: 

    1. Go to design section.
    2. Go to Miscellaneous.
    3. Select the show wallet option.
    2019-02-01T10:14:09.484Z