• Resolved thesinglegourmet

    (@thesinglegourmet)


    When I go to an order, I have the option “Refund $x.xx to customer wallet”.

    When I use that option, the customer receives an email (sent by WooCommerce) letting them know they have received a refund… but 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 credit on the website, not to their credit card.

    When the refund is issued via TeraWallet, is there a way to add text to the WooCommerce refund email so that it is clear that the refund is going to the wallet?

    I know they receive another separate email informing them of the wallet transaction, but I would like to reduce the confusion that has resulted from the text in the WooCommerce refund email.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @thesinglegourmet Sorry we can’t change the payment method title because it’s from the order payment method. You can add this to the refund note.

    Thread Starter thesinglegourmet

    (@thesinglegourmet)

    Hi, thanks for the response.

    Yes, a while after I posted this, I realized that is what I should do.

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

    If $refund_method is the correct variable, and ‘TeraWallet’ is the the correct value, I am guessing the code I would add to the email would look something like this:

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

    Can you tell me the actual name of the variable and value to use in that if statement?

    Or perhaps there is another if statement I can use to determine if TeraWallet was the refund method that was used?

    Thanks.

    Plugin Author Subrata Mal

    (@subratamal)

    @thesinglegourmet Unfortunately WooCommerce doesn’t save any refund method in the database.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change “payment method” text in refund email’ is closed to new replies.