• Resolved thesinglegourmet

    (@thesinglegourmet)


    When I go to refund an order, I have a few options available: Refund manually, refund via wallet (via TeraWallet plugin), Refund via credit card.

    When a user has paid with a credit card, and I use a refund option that is *not* “Refund via credit card”, the customer receives an email (sent by WooCommerce) letting them know they have received a refund… and next to “Payment method:” it says “Credit card” (or “Check payment” — whatever the original payment method was, see example here: https://www.dropbox.com/s/ndfkcgnxc8scoda/Screen%20Shot%202022-07-24%20at%2012.09.50%20PM.png?dl=0).

    As a result, my users sometimes contact me to ask why they haven’t seen the refund on their credit card, even though they were told they would get a refund by a different method, not to their credit card.

    Is there a way to add a “Refund method” field to this email, so that it is clear *how* they are getting a refund?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Brad P. a11n

    (@snaacks)

    Hi @thesinglegourmet

    Thanks for reaching out, the emails sent by WooCommerce are based on a template that is part of the core installation. This means you can edit or modify these templates to customize or add additional content, we have a great post about different methods for doing this here:

    https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/

    Please let us know if you have any additional questions. ??

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Thanks for the quick response.

    I know how to modify the refund email (by modifying customer-refunded-order.php), however, I cannot find any documentation as to how to determine the refund method.

    I use a plugin called TeraWallet that I can make refunds to, so this is the code I assume I would add to the email:

    <?php if ( $refund_method == 'TeraWallet' ) {
        <echo "Your refund has been credited to your virtual wallet at The Single Gourmet." );
     } ?>

    Assuming that $refund_method is the correct variable, and that ‘TeraWallet’ is the the correct value that WooCommerce would find and match in $refund_method.

    Can you tell me the name of the variable in which the refund method is stored, and how to find the possible values? Thanks.

    Hello,

    I’m going to leave it open for a bit to see if anyone is able to chime in to help you out. For development oriented questions, I’d also recommend asking them on the following places:

    WooCommerce Slack Community: https://woocommerce.com/community-slack/
    WooCommerce Community on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is there a way to specify the refund method in the refund email?’ is closed to new replies.