If a custom module defines their own customer profile type or extends another choosing to not use the default 'base' in the profile definition then the address book will not show up for those profile panes. The issue is in commerce_addressbook.module 's hook_form_alter. To determine if the checkout pane is a customer profile it compares the 'base' parameter, but this limits the address book to working for only customer profile panes that use the default that comes with commerce.

I will provide a patch that will allow it to work with all customer profile types. We'll do a comparison on the pane_id which in the case of customer profiles always starts with 'customer_profile' as its a part of the machine name and always consistent.

cheers!

Comments

acrazyanimal’s picture

Status:Active» Needs review
StatusFileSize
new2.08 KB

The patch is git aware. :)

acrazyanimal’s picture

Anyone have the time to look at this, review, mark as RTBC????

David Stosik’s picture

Status:Needs review» Reviewed & tested by the community

Just had this problem myself, and the patch fixed it perfectly!
Thank you,
David

drupalerocant’s picture

I just had the same problem with a custom profile and the patch solved it for me.

Thank you very much!

sportel’s picture

After I installed the 'Customer Profile Type UI'-module, the "Enable the Address book" setting disappeared. Your patch solved the problem.

Thanks,

Mike.

jsacksick’s picture

Status:Reviewed & tested by the community» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.