MMv4 KB
 
Customer Field
  Last Edited - 04/1/2013 4:06pm PDT
  Category Path - Glossary
 

A customer field is an input that may be created to collect additional information from customers, to be added to the customer's account.

Available field formats include checkbox, dropdown menu, list, radio button, and text field.

A customer attribute is another type of input that may be created to display individualized information to customers.

The creation and configuration of customer fields and customer attributes is very similar -- currently the options of the Customer Attribute Editor are identical to the options of the Customer Field Editor.

The difference between customer fields and customer attributes is that customers may edit the values of customer fields, while customers may only view the values of customer attributes.

The stock template packages will automatically display all active customer fields on the checkout page, at the bottom of the Billing Information section, except for any customer fields with the Internal Only option set to YES.

All active customer fields will also be displayed in the Custom Customer Fields section of the Customer Editor. If a customer has selected a value for a customer field, the selected value will be displayed when the customer's account is viewed in the Customer Editor. Store admins may also assign customer field values within the Customer Editor.
 

example: customer field vs customer attribute
One common form of input is a group of checkboxes. For instance, a checkbox group might be titled Colors, and include six checkboxes labled Red, Orange, Yellow, Green, Blue, and Purple.



In order to display the group of checkboxes on the checkout page, to allow customers to select their favorite colors when they place an order, first create a customer field in the Customer Field Editor.

The customer field would be of the Checkbox type, would be named Colors, and would have option values of Red, Orange, Yellow, Green, Blue, and Purple.

As a result, the group of checkboxes will be added to the checkout page below the Billing Information section. When a customer places an order, the customer will be able to select any of the Red, Orange, Yellow, Green, Blue, and Purple checkboxes before submitting the order.

The customer's selections will be saved in their account. If the customer places another order, the checkboxes they selected during the previous order will still be selected. The customer may select different checkboxes during each new order. The most recent selections will overwrite any previous selections.

Store admins will also be able to view the customer's color choices when viewing the customer's account in the Customer Editor. Store admins also have the capability of selecting different checkboxes, which would overwrite the customer's customer's selections.



In order to display the group of checkboxes within the Customer Editor, to allow store admins to quickly choose color values from the set group, while preventing customers from altering the selections, first create a customer attribute in the Customer Attribute Editor. The customer attribute would be of the Checkbox type, would be named Colors, and would have option values of Red, Orange, Yellow, Green, Blue, and Purple.

As a result, the customer attribute will then be added to the Customer Editor for all customer accounts. Store admins will have access to the Colors attribute and the  Red, Orange, Yellow, Green, Blue, and Purple checkboxes from within the Customer Editor.

The text associated with the checkboxes may optionally be displayed to customers in emails or added to pages of the storefront customer account area, but customers will never have access to the actual checkboxes to make different selections.
Powered by ModularKB