We have problems with “Email Tags” when sending messages to Affiliates.
We did use your email tags from doc:
https://wpaffiliatemanager.com/affiliates-manager-email-tags/
but it is not replaced with value dynamically and affiliates receive the message as a shortcode.
https://snipboard.io/9LP6CZ.jpg
we already updated to the latest version, both wp and your plugin.
Thank you in advance
]]>%DATE%
in the notification emails, it is changed to TE%
and not replaced.
I also tried the tags %startdate%
and %alldates%
with no success.
The %TIME%
%NAME%
%EMAIL%
and %INFORMATION%
tags work as expected.
Here is a screenshot of how I have it setup in settings –
https://www.cloudhq.net/c/0fe4de17361370
Here is a screenshot of what gets displayed on the website
https://www.cloudhq.net/c/f6023f42533032
Here is a screenshot of the email that gets sent out
https://www.cloudhq.net/c/bbd5a0d2d5f1f8
Please advise if this is a known bug or how to fix.
Thanks!
Chris
]]>Things I’ve done trying:
I tried unchecking “Send Attachment as links”
I double checked my email-setup which didn’t include any file tags/shortcodes for file
I’m using plugins filter to change email content, for example ‘new_user_approve_approve_user_message_default’ filter, but in received mail i get message with not processed tags, it looks like this:
You have been approved to access {sitename} {username}
To set your password, visit the following address: {reset_password_url}
How I can make tags work in custom email ?
]]>However I struggling with one thing.
When i put the {product_details} tag in the email sent to the buyer – it will only list one product. So if the buyer has bought a couple of different products – only one gets mentioned in the email. If i put the {product_details} tag several times – the email just repeats that one product’s details.
Any ideas?
]]>The comment box shows up, and you can add comments, but none of the comments appear in the “donation notification” email. The email tag called {referral} shows up in the email options in the give plugin, but for a reason beyond my coding skill level, I can’t make it work. Any help is greatly appreciated!
I’ve looked at a bunch of articles on here and givewp and cannot seem to find it. I’ve also tweaked the code and tested it for hours and no luck there either.
Here’s the code I’ve inputted into “My Custom Functions” to add the comment box, save the comments, and then add an email tag, and then capture the inputted comments in the email…
function give_donation_custom_form_fields( $form_id ) {
//Only display for a specific form;
//Remove “If” statement to display on all forms
{
?>
<div id=”give-referral-wrap”>
<label class=”give-label” for=”give-referral”><?php _e( ‘Comments:’, ‘give’ ); ?></label>
<span class=”give-tooltip icon icon-question” data-tooltip=”<?php _e( ‘Comments’, ‘give’ ) ?>”></span>
<textarea class=”give-textarea” name=”give_referral” id=”give-referral”></textarea>
</div>
<?php
}//endif
}
add_action( ‘give_after_donation_levels’, ‘give_donation_custom_form_fields’, 10, 1 );
/**
* Adds a Custom “Referral” Tag
* @description: This function creates a custom Give email template tag
*
* @param $payment_id
*/
function give_add_sample_referral_tag( $payment_id ) {
give_add_email_tag( ‘referral’, ‘give_referral’, ‘give_get_donation_referral_data’ );
}
add_action( ‘give_add_email_tags’, ‘give_add_sample_referral_tag’ );
/**
* Get Donation Referral Data
*
* @description Example function that returns Custom field data if present in payment_meta; the example used here is in conjunction with the Give documentation tutorials
* @param $payment_id
*
* @return string|void
*/
function give_get_donation_referral_data( $payment_id ) {
$payment_meta = give_get_payment_meta( $payment_id );
$output = __( ‘No referral data found.’, ‘give’ );
if ( isset( $payment_meta[‘referral’] ) && ! empty( $payment_meta[‘referral’] ) ) {
$output = $payment_meta[‘referral’];
}
return $output;
}
The comment box shows up, and you can add comments, but none of the comments appear in the “donation notification” email. The email tag called {referral} shows up in the email options in the give plugin, but for a reason beyond my coding skill level, I can’t make it work. Any help is greatly appreciated!
I’ve looked at a bunch of articles on here and givewp and cannot seem to find it. I’ve also tweaked the code and tested it for hours and no luck there either.
Here’s the code I’ve inputted into “My Custom Functions” to add the comment box, save the comments, and then add an email tag, and then capture the inputted comments in the email…
function give_myprefix_custom_form_fields( $form_id ) {
//Only display for a specific form;
//Remove “If” statement to display on all forms
{
?>
<div id=”give-referral-wrap”>
<label class=”give-label” for=”give-referral”><?php _e( ‘Comments:’, ‘give’ ); ?></label>
<span class=”give-tooltip icon icon-question” data-tooltip=”<?php _e( ‘Comments’, ‘give’ ) ?>”></span>
<textarea class=”give-textarea” name=”give_referral” id=”give-referral”></textarea>
</div>
<?php
}//endif
}
add_action( ‘give_after_donation_levels’, ‘give_donation_custom_form_fields’, 10, 1 );
/**
* Adds a Custom “Referral” Tag
* @description: This function creates a custom Give email template tag
*
* @param $payment_id
*/
function give_add_sample_referral_tag( $payment_id ) {
give_add_email_tag( ‘referral’, ‘This tag can be used to output the custom referral field’, ‘my_custom_prefix_get_donation_referral_data’ );
}
add_action( ‘give_add_email_tags’, ‘give_add_sample_referral_tag’ );
/**
* Get Donation Referral Data
*
* @description Example function that returns Custom field data if present in payment_meta; the example used here is in conjunction with the Give documentation tutorials
* @param $payment_id
*
* @return string|void
*/
function my_custom_prefix_get_donation_referral_data( $payment_id ) {
$payment_meta = give_get_payment_meta( $payment_id );
$output = __( ‘No referral data found.’, ‘give’ );
if ( isset( $payment_meta[‘referral’] ) && ! empty( $payment_meta[‘referral’] ) ) {
$output = $payment_meta[‘referral’];
}
return $output;
}
This has changed recently (in the last update or so)
I noticed this as using the text in the paypal receipt in an email filter. Before the paypal receipt (Notification of Payment Received) used to say
Description Unit price Qty Amount
Donate to Whatever – Custom Amount
£1.00 GBP 1 £1.00 GBP
Now it says
Description Unit price Qty Amount
– Custom Amount
£1.00 GBP 1 £1.00 GBP
so the “Donate to Whatever” text is missing.
]]>