10

Only just stumbled on this after realising that a client was correct. They set the Profile to use Email (home) but the Contribution page overrides this and makes the email be Billing.

This ticket seems closest to the issue though it is initially about the idea of being able to collect additional email addresses.

If John K is correct then current approach is

  • If the contact is logged in this field defaults to the 'Billing' email, if set, otherwise the 'primary' email

  • When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email

(ie: If the field was prefilled from the primary 'home' email, the contact would now have two email addresses the same for 'home' and 'billing')

  • We are looking at getting an alternative to this out as an Extension – petednz - fuzion Jan 18 '17 at 22:07
  • Have you made any progress with this extension? We have a client with the same issue. – Heather O. Jun 6 '17 at 8:00
  • Heather - can you pm me. peter.davis@fuzion.co.nz – petednz - fuzion Jun 7 '17 at 3:31
1

One solution is to create your own custom module/plugin to do what is required. Steps:

  1. Use hook_civicrm_postProcess hook for the target contribution page, you can give the contribution id or name in if condition.
  2. Use civicrm contact create api call to edit email address type.
  • thx. we have created an extension but waiting on QA by client before releasing – petednz - fuzion Jan 3 '18 at 5:00
  • pls have a look at the extension published in another answer on this ticket – petednz - fuzion Apr 6 '18 at 20:51
1

There is an extension here which includes email fields in profiles on the contribution page. The standard billing email address field is removed when an email field is found in profile.

If the contact is logged in - this field defaults to the 'Billing' email, if set, otherwise it is set to 'primary'.

When the contribution is confirmed the email address is saved/updated on the contact as the 'Billing' email

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.