The Customer module uses this hook to gather information on the types of customer information profiles defined by enabled modules. Each type is represented as a new bundle of the customer information profile entity and will have a corresponding checkout pane defined for it that may be used in the checkout form to collect information from the customer like name, address, tax information, etc. Every bundle comes with a locked address field and additional fields may be added as necessary.
The Customer module defines a single customer information profile type in its own implementation of this hook, commerce_customer_commerce_commerce_customer_profile_type_info():
The full list of properties for a profile type is as follows:
Example customer information profile type definition:
<?php $profile_types['billing'] = array( 'type' => 'billing', 'name' => t('Billing information'), 'description' => t('The profile used to collect billing information on the checkout and order forms.'), ); ?>
Customer information profile types may be altered using hook_commerce_customer_profile_info_alter(&$profile_types) after the module has been set.
A single customer profile type array is referred to as $profile_type. An array of customer profile type arrays keyed by type is referred to as $profile_types. The type of a customer profile type is referred to as $type.
Found errors? Think you can improve this documentation? edit this page