We just installed this on the site and it works great, but showing the price to the recipient in certain instances is crass. Is there any possibility of an option to remove the dollar amount when sending emails?
Completed
Last updated: November 26, 2024
Log in to comment on this feature request.
Hey there,
Thank you for getting in touch!
To hide the price in gift card received e-mails, you may use the following snippet:
add_filter( ‘woocommerce_email_styles’, ‘wc_gc_modify_styles’, 11, 2 );
function wc_gc_modify_styles( $css, $email = null ) {
if ( ( is_null( $email ) || ‘gift_card_received’ !== $email->id ) ) {
return $css;
}
$css .= ”
#giftcard__card-amount-container {
display: none;
}
“;
return $css;
}
To install snippets like the above, you may use the free Code Snippets plugin: https://wordpress.org/plugins/code-snippets/.
If you have any additional questions about this, please don’t hesitate getting in touch with our support team via: https://woocommerce.com/my-account/contact-support/.