In a Commerce project, I added some custom fields to the customer profile, and I’m using Addressbook. The customer profile is now displayed in the address book tab of each user page.
I need to change the display of this address book. Until now :
- I changed basic display settings of the fields in the "Manage Display" form, and this had a surprising effect : setting a label as hidden removed completely the default theming of all the view.
- I tried to use
hook_field_formatter_view()as per that Clive answer : this is great but it alters only the native AddressFields, not the custom fields of the customer profile.
- In the Commerce Addressbook Defaults view, source of the display, there's only one field in the view : Commerce Customer Profile: Rendered Commerce Customer profile.
I could call the fields one by one in the view, but what if I want to alter directly the Rendered Commerce Customer profile field ? Where is it built, and how can I theme or alter it?