Support » Plugin: PW WooCommerce Gift Cards » Add Additional Name above “To”

  • Resolved José


    Hi, how I can do this?
    Add Additional Name (to) above “To“: email.


Viewing 8 replies - 1 through 8 (of 8 total)
  • No, I need to add the Recipient’s name.

    Thanks for the fast reply.

    Plugin Author pimwick


    The Recipient’s Name is the field that is available in the Pro version. They can type in “John Doe” for the recipient’s name and “” in the “To:” email address field.

    Sorry, yes is this.

    Hi Mr. Pimwick,

    I need to put the woocommerce gift name (product title field) this in my e-mail header, like this: “{sender} vous a envoyé une {item_names}

    But this woocommerce e-mail tag {item_names} doens’t appear in PW Gift Card Email card.

    Any solution to this?

    • This reply was modified 1 year, 5 months ago by José.
    Plugin Author pimwick


    You can access the Product using code like this:

    <div class="pwgc-section">
        <div class="pwgc-label"><?php _e( 'Product', 'pw-woocommerce-gift-cards' ); ?></div>
        <div class="pwgc-amount">
                $product_id = $item_data->product_id;
                if ( empty( $product_id ) ) {
                    $gift_card = new PW_Gift_Card( $item_data->gift_card_number );
                    $product_id = $gift_card->get_original_order_item_meta_data( '_product_id' );
                $product = wc_get_product( $product_id );
                echo esc_html( $product->get_title() );

    Hi, Thank you.

    Where I can put this code, to work?

    Plugin Author pimwick


    We use the built in WooCommerce email template system. To override the email you should copy this file:


    To here (you may need to create the subfolders if they do not exist in your theme folder):


    Once the file is in your theme folder, open it up in a text editor and make any changes. You can change colors, wording, etc.

    You can find out more about customization here:

    Hope that helps, let me know if you have any questions!

    Works perfect ^_^’
    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add Additional Name above “To”’ is closed to new replies.