Customer Attributes

Account, Contact, and Address attributes let you add custom customer information and fields to checkout and customer registration forms.

Use customer attributes to collect and display custom account, contact, and address information across customer-facing and admin forms.

A customer is the person purchasing from your store. In Zoey, a customer is typically a Contact on an Account or an Additional Contact at an Account Location.

Open Customers > Attributes to manage attributes on the Account, Contact, and Address tabs.

  • Account attributes appear on the company-creation form in the admin, the customer portal registration form, the order-creation form, the Account Overview and, with Checkout Form (Store Frontend), checkout.
  • Contact attributes appear on the contact-creation form in the admin, the customer portal registration form, the order-creation form, customer checkout, and Contact Information.
  • Address attributes appear on the company-creation form in the admin, the customer portal registration form, the order-creation form, and the Ship To fields.
🚧

Customer attributes and order attributes are different

Customer attributes store information about a customer or the customer's business that may be required or helpful during registration. Order attributes store information about a specific order, so a customer can provide a different value for each order. Customer attribute values generally remain constant.

Create an attribute

  1. Open the tab for the entity the attribute belongs to (Account, Contact or Address), then click Create New Attribute. The form shows the entity, for example Entity: Account.
  2. Enter the Attribute Name, choose the Attribute Type and add any Help Text.
  3. Click Save. The visibility settings, the full list of forms and (for Drop Down and Multiselect) the Values section appear after you save.
  4. For Drop Down and Multiselect attributes, add the available values.
Create New Attribute form: Attribute Name, Attribute Type, Entity, Save To Order, Help Text and Forms

Configure attribute settings

Attribute name

Enter a unique, descriptive name, such as Customer Notes.

Attribute type

Attribute Type list: Text, WYSIWYG, Yes/No, Multiselect, Drop Down, Date, File, Matrix

Select one of the following types:

  • Text: A single-line field for short text.
  • WYSIWYG: A multi-line field for longer text.
  • Yes/No: A choice between yes and no.
  • Multiselect: A field where the user can select multiple values. Configure values after saving.
  • Drop Down: A field where the user can select one value. Configure values after saving.
  • Date: A date field.
  • File: A field where the user can upload a file.
  • Matrix (Table)

Entity type

The entity comes from the tab you create the attribute on:

  • Account: Stores a value for the account and displays it on the Account Overview.
  • Contact: Stores a value for the contact and displays it on the Contact record.
  • Address: Stores a value for each address and displays it with that address. A customer can have multiple addresses, each with a different value.

Save To Order

Account attributes only. When this is checked, Zoey copies the account's value onto each new order, so the order keeps the value it had when it was placed. Order Data Mappers read the value from the order.

Help text

Add instructions or helpful text in the WYSIWYG editor. You can link to downloadable forms, such as credit applications, W-9s, and MAP agreements, on the registration page.

👍

Upload linked forms to the File Manager

Learn how to get form URLs.

Configure visibility

Visible to only specified customer groups

Enable this setting, then select the Customer Groups that can use the attribute.

Use for search in the customer grid

Set this option to Yes to search for customers in the Zoey admin by this attribute's value.

Available as a column in the order grid

Set this option to Yes to make the attribute available as a column in the Orders grid in the Zoey admin.

Show on PDFs

Set this option to Yes to include the attribute value on order, invoice, shipment, and other PDF files that an admin or customer can download.

👍

This setting appears only after you save a new attribute.

Show on emails

Set this option to Yes to include the attribute value in order, invoice, shipment, and other emails sent to the customer.

👍

This setting appears only after you save a new attribute.

Show on View Order/Quote

Choose where the attribute appears on an order or quote:

  • Admin only
  • Storefront (customer) only
  • Both admin and store

Set validation rules

Some attribute types include a Validation Rule section. Set Minimum Characters and Maximum Characters to control the permitted input length.

For supported attribute types, set Validation Type to require numeric, alphanumeric, or email-address input. You can validate input on the storefront only or in both the storefront and admin.

Add attributes to forms

The form names depend on the entity. An Account attribute lists Account Create / Edit / View Form (Admin), Account Registration Form (Store Frontend), Edit Account Form (Store Frontend), Order Creation Form (Admin), Sales Reports (Admin) and Checkout Form (Store Frontend). The sections below use the Contact names; the matching Account form works the same way.

Forms for an Account attribute

Required for all forms

Set this option to make the attribute required on every enabled form.

For an Account attribute, it doesn't turn on Sales Reports (Admin) or Checkout Form (Store Frontend). Turn those on separately, so making an attribute required never adds it to reports or to checkout by itself.

Customer Create / Edit / View Form (Admin)

Add the attribute to the Customer Edit screen in the admin.

Customer Registration Form (Storefront)

Add the attribute to the customer registration form.

Edit Customer Form (Storefront)

Add the attribute to the Edit Account Information screen in the customer's My Account dashboard.

Checkout Registration Form

Add the attribute to the customer registration form during checkout.

Checkout Form (Store Frontend)

Requires the attribute during checkout on your storefront. While this is on, Checkout Registration Form and Edit Customer Form (Store Frontend) are always on too.

For an Account attribute, Zoey asks for the value during checkout when the customer's account doesn't have one yet. Accounts that already have a value check out as usual.

  • Main Contacts of the account (the contacts who can edit it in Account Manager) see the empty fields at the top of the first checkout step, Shipping Method (or Payment when nothing in the cart ships). The value is saved to the account when they continue.
  • Other contacts on the account see which information is missing and their account manager's email, and can't check out until it's added.

While this is on, Edit Account Form (Store Frontend) is always on and required too, so the value can be changed later in Account Manager. This option isn't available for File and Matrix attributes.

📘

Collect information your imported accounts are missing

Use this when accounts were created or imported before you needed a field, such as a Tax ID. Each account is asked once, the next time it checks out.

Order Creation Form (Admin)

Add the attribute to the Create Customer screen when placing an order in the admin.

Sales Reports (Admin)

Account attributes only. Adds the attribute to Group by and the filters in the Orders report. Works with Drop Down, Yes/No and Text attributes.

Restricted Customer Group Form

Add the attribute to the custom registration URL page set up in Web Settings > Customer Settings > Account Request/Registration.

Show on Export Full Customer Data CSV

Include the attribute value in the Customer Data CSV export.

Sort Order in Forms

Enter a value to control this attribute's position when multiple attributes appear on the same form.

Add Dropdown or Multiselect values

After you save a Drop Down or Multiselect attribute, add the values available for users to select in the Values section: click Add a New Value, or Add Multiple Values to add several at once. Export Values To CSV downloads the list.

Values section with Add a New Value, Add Multiple Values and Export Values To CSV

Add customer attributes to email templates

Use the following variable format for a customer attribute:

{{htmlescape var=$customer.__getCustomAttributeValue('attribute_code')}}

For example, use the following variable for a customer attribute with the code company_name:

{{htmlescape var=$customer.__getCustomAttributeValue('company_name')}}

Use the following variable format for a customer address attribute:

{{htmlescape var=$address.__getCustomAttributeValue('attribute_code')}}

If the address variable is not provided directly, retrieve it from the parent entity variable. For example, use the order's billing and shipping addresses in order emails:

{{htmlescape var=$order.getBillingAddress().__getCustomAttributeValue('attribute_code')}}

{{htmlescape var=$order.getShippingAddress().__getCustomAttributeValue('attribute_code')}}

Import customer attributes

Add customer attributes as columns in an Account import CSV.

🚧

Use the entity prefix in an Account import

Use the attribute code as the column header and prefix it with the entity: account, contact, or account_address.

The code depends on the object the attribute belongs to and how you are importing it. Open the attribute in Customers > Attributes to see it: Code (CSV) is the exact column header to use in an Account import.

An attribute's details: ID, Type, Entity, Code, Code (API) and Code (CSV)

For example, a Tax ID attribute on an Account uses the column header account_tax_id. If the Tax ID is on a Contact, use contact_taxvat.

👍

The code also depends on the importer

When importing Contact attributes directly through the Contacts Importer, you do not need the prefix.

FAQ

How do I remove Date of Birth (or another field) from checkout?

Date of Birth is a Contact field. To stop asking for it at checkout:

  1. In the Zoey Admin, go to Customers > Attributes and open the Contact tab.
  2. Look for Date of Birth in the list.
    • If it's in the list: open it. Under Forms, turn off Checkout Form (Store Frontend) and Checkout Registration Form (if Required for All Forms is on, turn it off first), then click Save.
    • If it isn't in the list: it's a built-in field your admin can't edit. Create a support ticket and ask Zoey Support to turn off Date of Birth at checkout.

Customers can then check out without entering it. The same steps work for any other Contact or Account field in the list that you don't want at checkout.

Why won't my Account save, or why does a change like the Customer Group go back?

A required Account attribute is empty. The Account page shows Required field(s) to fill in with a button for each empty required field, and Zoey doesn't save any change, including the Customer Group, until they're filled. Click each button to go to the field and fill it in; your earlier change then saves too.

To make the field optional, open it here and turn off Required for All Forms and its required setting under Forms. See also Create an account in the admin.

How do I ask for an account's Tax ID at checkout?

If some accounts don't have a value yet (for example, accounts you imported before you needed it), let Zoey ask for it at checkout:

  1. In the Zoey Admin, go to Customers > Attributes and open the Account tab.
  2. Open the attribute, such as your Tax ID attribute, or create one.
  3. Under Forms, turn on Checkout Form (Store Frontend), then click Save.

The next time someone on an account without a value checks out, the account's Main Contacts fill it in during checkout; other contacts are asked to contact them. To show the field in another language, change its label for that store view.


Did this page help you?