Skip to main content
Version: 8.3.x

Customer profiles

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​

KeyNameDescriptionRequired?Type
CP_FIRST_NAMEFirst NameCustomer first nameYesShort Text
CP_LAST_NAMELast nameCustomer last nameYesShort Text
CP_EMAILEmailCustomer email addressNoShort Text
CP_PREF_LOCALEPreferred LocaleCustomer preferred localeNoShort Text
CP_PREF_CURRPreferred CurrencyCustomer preferred currencyNoShort Text
CP_PHONEPhone NumberCustomer phone numberNoShort Text
CP_FAXFax NumberCustomer fax numberNoShort Text
CP_DOBDate of BirthCustomer date of birthNoDate
CP_COMPANYCompanyCustomer companyNoShort Text
CP_BUSINESS_NUMBERBusiness NumberCustomer company business numberNoShort Text
CP_HTML_EMAILHTML emailsIndicate whether to receive html format emailNoBoolean
CP_BE_NOTIFIEDBe notified of NewsCustomer companyNoBoolean
CP_TAX_EXEMPTION_IDTax Exemption IDCustomer tax exemption IDNoShort Text

Accounts​

KeyNameDescriptionRequired?Type
AP_NAMEBusiness NameCustomer first nameYesShort Text
AP_BUSINESS_NUMBERBusiness NumberBusiness numberNoShort Text
AP_PHONEPhoneBusiness phone numberNoShort Text
AP_FAXFaxBusiness fax numberNoShort Text
AP_TAX_EXEMPTION_IDTax Exemption IDBusiness tax exemption IDNoShort 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