-
Notifications
You must be signed in to change notification settings - Fork 25
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
Additional available tokens for the receipt: campaign, payment method #194
Comments
These tokens currently do not seem to be available, but might be easy to add to the queries that collect all the data. We will have to double-check, however, if they affect the storage of receipts (as they'll have to be statically saved so that future copies won't differ from the original). Also, the code fetching things from the DB looks quite old, so that while adding functionality, refactoring might make sense. There is also a hook being invoked when evaluating tokens ( |
Thanks a lot for replying ! For the first option what would be the development effort to sponsor ? |
Hi @Guydn. There might be another option: You should be able to load the payment method label during the PDF generation via SMARTY. Let us know if you need help with that. However, this approach would have one drawback: the receipts are supposed to be immutable, but in this case a change in the payment method would not be stored in the receipt DB entry - for that this structure would have to be extended, which would require quite some work - that's what my colleague was referring to. But if you're ok with this drawback, and/or you use the "Store the original PDF file" option, then the SMARY approach might be "good enough" for you. |
Thanks a lot @bjendres I will try this solution. Maybe we can close this issue for the time being. |
Hi @bjendres , i want to customize a profile for generate a receipt for my use case. in the template of profile i want to add the name of campaign and the method payment. In my template i have this object with this object i can use a foreach like this :
in this HTML table i can retrieve information of contribution with bulk option (directly on tab option of contact). Perfect !! now i want to add in my HTML table another information : method payment and the name of campaign. I have difficulties to retrieve this information. I tested this token in my template but without results : For the test i display an identifiant of this How can retrieve name of campaign and method payment in my template ? Thanks |
Hi @jensschuppe or @bjendres have you got an idea for my problem please ? thanks |
Hi @Guydn, thanks for offering your help. To discuss details and get a quote, could you email us at [email protected]? |
internal ref #25568 |
Hi any news on this or to display the received date for single receipt? |
For the french receipt, we need to display the payment method label (check, transfer, credit card) in the receipt.
In case of donation for a specific purpose (campaign/ project label), it is useful to give the donor an information in the receipt. That can be in single or in bulk receipts.
Are these tokens available now ? If not which effort would be needed to have them ?
The text was updated successfully, but these errors were encountered: