Use the tag {sender} for the “Buyer name” field.
There isn’t a “Recipient name” because the buyer only enters in the email address for the recipients. So you can’t say “Hello recipient, buyer bought you a gift card” but you can do “Hello, {sender} bought you a gift card”.
Thread Starter
g3x123
(@g3x123)
Thank you for your quick reply!
I know I can use {sender} in the wp-admin part, but this will not work in the customer-pw-gift-card.php file I guess?
In that file try using this instead:
<?php echo $item_data->from; ?>
Thread Starter
g3x123
(@g3x123)
Excellent! Thank you very much.
You’re welcome! Let us know if you need anything else.
Thread Starter
g3x123
(@g3x123)
What would be the email address of the recipient (angelface)?
Currently that field isn’t being passed to the template. We can likely add it. Are you using the Pro version or the Free version?
Thread Starter
g3x123
(@g3x123)
I just started using your plugin today, it still is the free version.
We might upgrade to the pro version soon after exploring some more 🙂
In v1.17 we made the field available to the template. To get the update:
1. Log into your WordPress Admin area.
2. Click on Plugins -> Installed plugins.
3. Scroll down to PW WooCommerce Gift Cards and click “Check for updates.”
4. The page will refresh, then scroll back down and click on “Update.”
Then you can use the following field for the recipient email address:
<?php echo $item_data->recipient; ?>
Let me know if you need anything else!