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
feat(email): display any meta data with dynamic email tags #2801
Comments
@DevinWalker @mathetos @kevinwhoffman I kept in mind when I created the snippet that we cannot create email tags for all donation metadata and there must be an easy way which can handle by admin. @kevinwhoffman I like the way you suggested tag named but all donation meta does not follow meta key name standard and we do not know which naming will be followed by the third-party addon. This logic is not only for core, but it is for all addon which will be created in future fo give. By revisiting the scope of dynamic email tag. I want to add following suggestion. Donation : Dynamic name details: For example:
|
@ravinderk You're much more familiar with the meta architecture than I am, so I trust your judgement on this. How do you anticipate users knowing which tag to use? Will they be listed alongside the other tags when editing an email template, or will they have to know the I suppose even if users don't grasp the feature on their own, it will at least give Support a quick solution for anyone with these kinds of requests. |
Agree with you. Output list will not be a good idea because the list will keep increasing. On this, we need @mathetos help. Maybe we can document it somewhere or boost an email to plugin users which will inform plugin about it. We can also document general email tag format on email message editor.
This is the main purpose to develop it. |
I agree. A link at the bottom of the existing tags list could point to the documentation for these dynamic tags. |
|
|
I need to review in more detail, but at first read I think the tags should be prefixed only with But I'll review in more detail in a bit. |
@mathetos |
@ravinderk That makes sense, I see what you mean and understand. I agree with Kevin that adding a link to full documentation would be good. Here's the wording I'd suggest for that sentence and link:
|
@mathetos Text added. |
@ravinderk A couple things on that:
|
@mathetos Changes done. |
@ravinderk I tested this fully today. Everything seems to work as intended except for the donor meta. I tried with all the variations of the following:
Note that Also note that I want to fully document this new feature but it need to be able to see it correctly. If you test and have it working then let me know what I'm missing. Otherwise, maybe we should re-open this until those tags work as intended. |
|
@mathetos @ravinderk |
Thanks for testing @mehul0810 -- I pulled the latest 2.1 and Regarding Thanks! I'll close this out again. |
Issue Overview
Users often want to display meta data within their emails, but a specific tag for that meta data may not exist. Since
donor
anddonation
meta data are stored in predictable locations, there should be a way for users to define what meta data they want to display through dynamic email tags.Expected Behavior
Meta data that is collected should be displayable in emails.
Current Behavior
Displaying meta data currently requires a specific tag.
Possible Solution
Add two dynamic email tags capable of reading meta data based on the provided key. The tag would begin with either
donation_
ordonor_
depending on whether the meta data is stored alongside the donation or donor.Examples:
{donation_transaction_id}
{donor_email}
Related Issues and/or PRs
impress-org/givewp-snippet-library#62
The text was updated successfully, but these errors were encountered: