When I activate pay later and force pay later address input on an event I get some fields displayed.
How can I add "Company" to those fields?
I used the hack in How to change order in billing address to tweak the ordering.
The return in CRM/Core/Payment/Manual.php
looks like this:
return [
'first_name' => 'billing_first_name',
'last_name' => 'billing_last_name',
'street_address' => "billing_street_address-{$billingLocationID}",
'postal_code' => "billing_postal_code-{$billingLocationID}",
'city' => "billing_city-{$billingLocationID}",
'country' => "billing_country_id-{$billingLocationID}",
'state_province' => "billing_state_province_id-{$billingLocationID}",
];
I'm not sure what the values in this returned table actually means or how it is used, but I could not find anything like billing_company
or billing_organisation
when grep
-ing the PHP sources.
Is there a way to add the company information to the "pay later" form?
'company' => "current_employer"
displays the field, but it does not get saved in the billing information.