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.
Hello,
Addressbook doesnt update Address field only non-addressfield fields.
Seems that:
field_get_items('commerce_customer_profile', $profile, 'commerce_customer_address');
doesnt work correctly
and
$element_key = $form[$pane_id]['commerce_customer_address'][$form[$pane_id]['commerce_customer_address']['#language']][0]['element_key']['#value'];
returns empty value.
I can somehow access the data via:
$form[$pane_id]['addressbook_entries']
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedAddressbook relies on Commerce for all customer profile manipulation, so if you're still encountering this bug with Commerce 1.4 and Commerce Addressbook 7.x-2.0-rc3, open an issue in that queue, and we'll look into it. Cheers!
Comment #2
giuvax CreditAttribution: giuvax commentedCommerce 1.5 and Commerce Addressbook 7.x-2.0-rc3.
I added some extra fields and they are not shown in Addressbook (nor on Order details).
In addition to this, since I added some extra fields in the Billing profile, they are never compared with the ones in the Addressbook, so I have to fill them again and they are saved in a new address though they actually match the old ones.
Comment #3
lsolesen CreditAttribution: lsolesen commented@giuvax Could you please try with latest versions of Commerce and Commerce Addressbook?
Comment #4
giuvax CreditAttribution: giuvax commentedI'll try and make a copy of the website with this problem, I don't want to change modules now it is working. Stay tuned!