-
-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/core#5578 Adding Recurring tokens to Contribution/Membership toke… #31579
base: master
Are you sure you want to change the base?
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
The issue associated with the Pull Request can be viewed at https://lab.civicrm.org/dev/core/-/issues/5578 |
Hmm, I'm pretty sure you should be able to access recurring tokens automatically if the contribution/membership is linked to a recur. But I can't remember the syntax. |
Edit, at least for membership the relevant code is here: https://github.com/civicrm/civicrm-core/blob/master/CRM/Member/Tokens.php#L148 |
@mattwire Take a look at the line just above
It's indicating that it should crop those entries via |
Ah, makes sense @shaneonabike . So there is some history here: #25563 I'm happy with this change but you need to fix tests to support the new tokens |
Overview
As it stands there a few Recurring Contribution tokens that are either excluded or not added as tokens for Scheduled Reminders. In our case, we have a client who would (in a scheduled reminder) like to let people know when their payment will go through, which I think is pretty cool. Then I was also thinking that letting them know if there are failed attempts is a pretty good token to have as well.
Example use-case
Current behaviour
None of these tokens are available
Modifications made
Exposed the
Next Schedule Date
,Failure Count
, andFailure Retry Date
for both Contributions and Memberships.I realized later that the last two are fairly important as well considering setting up automated messages on failures is pretty helpful at times (and something potentially my client would like).
At some point, someone might request that we also expose Installments because I could see that being a useful bit of information to report to people if they signed up for that.