Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
thanks for developing this module
I was wondering if we could use the hook_commerce_addressbook_label_alter(&$label, $entity) hook to look-up by a custom field ( customer name ) we added to the Customer Profile instead of by the address ? I'm not quite sure what this hook would look like ?
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedSure. $entity is the customer profile.
Sample:
Note that this hook has changed in 7.x-2.x, it's now hook_commerce_addressbook_labels_alter(&$labels, $profiles).
The principle is the same. You can see its documentation in commerce_addressbook.api.php
Comment #3
jvb747 CreditAttribution: jvb747 commentedSorry, but i need to use this hook on checkout and haven't any idea where to put this hook and how it will look like,using $labels and $profiles. Can you help me?