To Replicate:

On a webform Add a membership.
On the Contribution tab enable pay later and add some pay later text.
Save
Submit the webform. You do not get the pay later text.

Note this works as expected without the Membership tab.

The automated testing for pay later only covers a webform with a Contribution.

Tested on latest webform civicrm 7.x-4.x branch + CiviCRM 4.6 branch. When select pay later when making a payment on webform civicrm, it sends out the confirmation email with subject and content in receipt version rather then invoice version (is_pay_later) while PDF invoice shows correct info.

Comments

guanhuan created an issue. See original summary.

colemanw’s picture

Have you done any debugging for this yet? I'd suggest looking into the contribution.sendconfirmation api to see how it works - is there some other param needed to tell it which message to send?

ayduns’s picture

The problem still exists on 4.7 and seems to be in core, not this module.

I've submitted https://github.com/civicrm/civicrm-core/pull/10306

@guanhuan Please test - does this fix your problem?

petednz’s picture

Status: Active » Needs review
mpaulson’s picture

Status: Needs review » Closed (outdated)

This issue was filed against a branch (7.x-4.x) that is no longer supported. We're sorry we did not get to work through it, but once you upgrade to 7.x-5.x and if the issue persists, please feel free to re-open.

luke.stewart’s picture

Version: 7.x-4.x-dev » 6.x-dev
Status: Closed (outdated) » Active

We are seeing this on a Drupal 10 site with 6.x-dev-master.

luke.stewart’s picture

Title: Pay later sends Receipt email rather then Invoice email » Pay later sends Receipt email rather than Invoice email
Issue summary: View changes
luke.stewart’s picture

Status: Active » Closed (works as designed)

Actually this is a CiviCRM core bug I think. I've followed through everywhere and the pay later text is added as expected but is not rendered. I suspect due to message template not having the variable.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.