Product Icon

Gift Cards for WooCommerce

Offer prepaid digital gift cards that customers can redeem online.

Gift card email without price displayed

When the email is sent to the recipient of the gift card, it has the price displayed on it. If the gift card is set for a specific product then the price doesn’t need to be displayed. Can we have the choice to show / hide the price to the recipient depending on how the gift card is set up.
The sender should get a confirmation email with the price displayed as a receipt of the transaction, but the receiver should just contain the message and who it iwas from.

Author

ianbj

Current Status

Completed

Last updated: December 11, 2023

1 comment

Log in to comment on this feature request.

  1. jaskyt8 says:
    Product developer January 30, 2025 10:46 am

    Hey there,

    Thanks for getting in touch!

    The Gift Cards plugin supports pre-paid, multi-purpose gift cards. Multi-purpose gift cards can be used to buy any product for your store, not only a specific product: https://woocommerce.com/document/gift-cards/store-owners-guide/#understanding-gift-cards.

    That said, if you still want 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/.