• Resolved g3x123

    (@g3x123)


    Hello,

    I would like to send the custom email which I copied to the described place. Now I would like to have something like:

    Hello “Receipient name”, “Buyer name” bought you a gift card.

    Can anyone help me out with these 2 tags / codes to get the buyer and receipient names please?

    Thanks!
    Kind regards,
    Kevin

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author pimwick

    (@pimwick)

    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?

    Plugin Author pimwick

    (@pimwick)

    In that file try using this instead:

    <?php echo $item_data->from; ?>

    Thread Starter g3x123

    (@g3x123)

    Excellent! Thank you very much.

    Plugin Author pimwick

    (@pimwick)

    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)?

    Plugin Author pimwick

    (@pimwick)

    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 ??

    Plugin Author pimwick

    (@pimwick)

    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!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sender tags for custom e-mail’ is closed to new replies.