Customer Profiles allow you to set up the required or optional information fields for customers. The information is stored using the same attribute mechanism that is used for products. Elastic Path has a predefined set of system customer profile attributes that cannot be changed. You can add, update, delete new customer profile attributes for your application through Commerce Manager. All customer profile attributes are not locale dependent.
System customer profile attributes
Users
Key
Name
Description
Required?
Type
CP_FIRST_NAME
First Name
Customer first name
Yes
Short Text
CP_LAST_NAME
Last name
Customer last name
Yes
Short Text
CP_EMAIL
Email
Customer email address
No
Short Text
CP_PREF_LOCALE
Preferred Locale
Customer preferred locale
No
Short Text
CP_PREF_CURR
Preferred Currency
Customer preferred currency
No
Short Text
CP_PHONE
Phone Number
Customer phone number
No
Short Text
CP_FAX
Fax Number
Customer fax number
No
Short Text
CP_GENDER
Gender
Customer gender
No
Short Text
CP_DOB
Date of Birth
Customer date of birth
No
Date
CP_COMPANY
Company
Customer company
No
Short Text
CP_BUSINESS_NUMBER
Business Number
Customer company business number
No
Short Text
CP_HTML_EMAIL
HTML emails
Indicate whether to receive html format email
No
Boolean
CP_BE_NOTIFIED
Be notified of News
Customer company
No
Boolean
CP_TAX_EXEMPTION_ID
Tax Exemption ID
Customer tax exemption ID
No
Short Text
Accounts
Key
Name
Description
Required?
Type
AP_NAME
Business Name
Customer first name
Yes
Short Text
AP_BUSINESS_NUMBER
Business Number
Business number
No
Short Text
AP_PHONE
Phone
Business phone number
No
Short Text
AP_FAX
Fax
Business fax number
No
Short Text
AP_TAX_EXEMPTION_ID
Tax Exemption ID
Business tax exemption ID
No
Short Text
Key classes and files
Customer - Represents a customer. A customer has a customer profile. For easy access, some system attributes can be set and retrieved through the customer object directly
CustomerProfile - A customer profile contains a collection of customer profile attribute values. It provides the interface to retrieve or update all profile values
AttributeValue - Represents the value for a given attribute for a given customer
Attribute - Defines the customer profile attribute type, usage, key, name etc
AttributeService - A service that provides all attribute maintenance functions
CustomerService - The register and edit account pages will interact with customer service to add and update customer information