Forum Replies Created
-
AuthorPosts
-
in reply to: email controls #10535
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.
in reply to: email controls #4473OK, 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.
in reply to: email controls #4471Quick follow-up question: when I use the plugin to credit or debit the wallet, there is a “description” field. How would I include that in the custom email? I assume it would be <?php echo [please tell me what to put here] ?>
- This reply was modified 5 years ago by thesinglegourmet.
in reply to: email controls #4468Ah, 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.
-
AuthorPosts