Working With the My Profile Web Part

The My Profile Web Part provides the shopper with a way to manage an account on the e-commerce site. It displays the required fields and information in a tabbed view, allowing the shopper to navigate to data grouped by Personal Information, Shipping Information, Billing Information, and Addresses.

The My Profile Web Part is not responsible for creating a new profile, only for editing an existing profile. (The Registration Web Part creates a new profile.)

The My Profile Web Part only covers the functionality of the Personal Information section, Shipping Information, and Billing Information. The personal information section allows for editing of attributes such as first name, last name, date of birth, and so on.

When shoppers successfully update their profiles, a success message is displays. If the update is unsuccessful, the shopper is shown the appropriate validation messages prompting for corrective action.

Web Part

The following figure shows the My Profile Web Part.

Dd451253.VugMyProfile_WebPart(en-US,CS.90).gif

Property Sheet

The following figure shows the My Profile Web Part property sheet. The My Profile Web Part property sheet lets site designers control some aspects of the Web Part's behavior and appearance. The property sheet is displayed by selecting the edit option on the Web Page (in Edit Page mode) and then selecting Modify Shared Web Part. This displays the property sheet. Expand the sections to see the relevant properties.

Dd451253.Vug_MyProfile_WebPart_Properties(en-US,CS.90).gif

Properties

The following table lists and describes the properties for the My Profile Web Part.

Property

Type

Description

Default

Instructional text

String

Sets the text block displayed below the title. Can be used to provide instructions to end users.

Fill out the required fields to change your personal information.

"* are required fields" label text

String

Sets the text displayed under the instructional text which indicates that fields marked with a '*' are required.

* Indicates required field.

"User Id" label text

String

Sets the text displayed beside the "user id" field.

User ID:

New e-mail address label text

String

Sets the text displayed beside the "email" text box.

* New e-mail address

"First name" label text

String

Sets the text displayed beside the "first name" text box.

* First name

"Last name" label text

String

Sets the text displayed beside the "last name" text box.

* Last name

"Use Live Id" check box text

String

Sets the text displayed beside the "use Live Id" check box.

Associate With My LiveID Account

"Shipping method" label text

String

Sets the text displayed beside the "shipping method".

Shipping Method

"Last name is required" message

String

Sets the text displayed when the user submits without supplying a value for "last name".

Please enter your last name

"First name is required" message

String

Sets the text that is displayed when the user submits an invalid value for "first name".

Please enter your first name

"Save" button text

String

Sets the text displayed on the "save" button.

Save Updates

"Personal information" section title text

String

Sets the text displayed above the "personal information" section.

Personal Information

"Personal preferences" section title text

String

Sets the text displayed above the "personal preferences" section.

Personal Preferences

"Allow additional communications" check box text

String

Sets the text displayed beside the "allow additional communications" check box. The check box allows the user to opt-in to whatever the text describes here.

Please do not send me marketing messages.

"Email" Label Text

String

Sets the text displayed on the label of the e-mail field.

Email Address

"Current e-mail address" label

String

Sets the text displayed on the label of the current e-mail address field.

Current e-mail address

Compare e-mail error message

String

Sets the text displayed when the user submits with mismatching e-mail addresses in the "e-mail address" and "Confirm e-mail address" fields.

The e-mail address and Confirm e-mail address must match

Confirm e-mail error message

String

Sets the text displayed when the user submits without supplying a value for "Confirm e-mail address".

Please re-enter your e-mail address for confirmation

Validate e-mail error message

String

Text displayed if the e-mail address entered does not meet standard email formats as set by the E-mail Validation Expression.

Please enter a valid e-mail address

E-mail Validation Expression

String

The regular expression that defines valid e-mail addresses.

\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*

"Confirm new e-mail address" label text

String

Text displayed on the label of the "confirm new e-mail address" field.

* Confirm new e-mail address

Email required error message

String

Sets the text displayed when the user submits without supplying a value for "e-mail address".

Please enter your e-mail address

Cancel Button Text

String

Sets the text displayed on the "cancel" button

Cancel Updates

Profile Preferences label text

String

Sets the text in the Profile Preferences section.

Profile Preferences

Change Email Instruction Text

String

Sets the text block displayed to provide instructions to end users.

You will be required to log in again after updating your e-mail address

Log-in with user name

Boolean

If checked, allows the shopper to log in with their user name.

False

Cancel Button URL

String

Sets the page URL to redirect to if user cancels profile update.

/MyAccount/Pages/myAccount.aspx

See Also

Other Resources

Working With the Web Parts

Profile Administration Web Parts

My Profile Web Part