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

bojanz’s picture

Status: Active » Closed (cannot reproduce)

Addressbook 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!

giuvax’s picture

Version: 7.x-2.0-rc2 » 7.x-2.0-rc3
Assigned: brnco » Unassigned
Status: Closed (cannot reproduce) » Active

Commerce 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.

lsolesen’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

@giuvax Could you please try with latest versions of Commerce and Commerce Addressbook?

giuvax’s picture

I'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!