Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Customer Profile

Kevin Ottley edited this page Apr 8, 2014 · 2 revisions

Prev | Next

The Customer's profile encompasses a bunch of different views.

  • Index
  • Profile
  • Addresses
  • Orders
  • Wish Lists
  • SROs (if enabled)

The index page lists the addresses, orders, SROs and Wish lists of the logged in customer.

Different links located throughout this page give the user the ability to perform view, edit and add functions where applicable. Depending on the action invoked, a different view file is invoked.

Create and edit actions display fillable forms made up primarily of <input> and <label> elements that are all individually identified for easy CSS customization. Here is a section of the edit an address form (/myaccount/address) and its corresponding rendered HTML code.

...
 <div class="row-fluid">

    <div class="span5">
        <label for="CustomerAddress_first_name">

            First Name

        </label>
        <input id="CustomerAddress_first_name" type="text" value="Joshua" maxlength="255" name="CustomerAddress[first_name]"></input>
        <div id="CustomerAddress_first_name_em_" class="errorMessage" style="display:none"></div>
    </div>
    <div class="span5">
        <label for="CustomerAddress_last_name">

            Last Name

        </label>
        <input id="CustomerAddress_last_name" type="text" value="Vito" maxlength="255" name="CustomerAddress[last_name]"></input>
        <div id="CustomerAddress_last_name_em_" class="errorMessage" style="display:none"></div>
    </div>

</div>
...

Clone this wiki locally