thesinglegourmetParticipantDecember 18, 2019 at 11:01 pmPost count: 5
Is there any way to alter the content of the email that Woowallet sends to users?
Also, is there a way to disable the email?
Thanks.Subrata MalKeymasterDecember 19, 2019 at 6:35 pmPost count: 207
You can disable wallet emails from WooCommerce > Settings > emails tab. And also override email content by copying tempalate into theme folder.thesinglegourmetParticipantDecember 19, 2019 at 10:26 pmPost count: 5
Ah, I didn’t notice a new email control setting there.
And I found the template in /wp-content/plugins/woo-wallet/templates/emails/user-new-transaction.php and copied it to /mytheme/woo-wallet/emails/
Thank you for the quick response.thesinglegourmetParticipantDecember 20, 2019 at 12:39 amPost count: 5thesinglegourmetParticipantDecember 20, 2019 at 3:06 amPost count: 5
OK, I figured out how to print the description in the mail: <?php echo ($details); ?>
Another question: I would like to have a certain message if the balance is zero; a different message if the balance is not. I have not been able to successfully identify how to compare the balance to zero. I tried this:
if (woo_wallet()->wallet->get_wallet_balance( $user->ID ) == 0)
but it always resolves to true, whether or not the balance is zero, even though this line
<p><?php _e(‘Your current balance is:’) ?> <?php echo woo_wallet()->wallet->get_wallet_balance( $user->ID ); ?></p>
displays a correct non-zero balance in the email.Subrata MalKeymasterDecember 20, 2019 at 11:40 amPost count: 207
if (woo_wallet()->wallet->get_wallet_balance( $user->ID, 'edit' ) == 0)thesinglegourmetParticipantMay 4, 2023 at 3:09 amPost count: 5
I just had this question again, and when I googled “terawallet include description in email” the first link brought me to this page where I found the answer.
2023 me would like to thank 2019 me for figuring out the answer and posting it, lol.
- You must be logged in to reply to this topic.