• Resolved José

    (@alquimia)


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

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter José

    (@alquimia)

    No, I need to add the Recipient’s name.

    Thanks for the fast reply.

    Plugin Author pimwick

    (@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 “[email protected]” in the “To:” email address field.

    Thread Starter José

    (@alquimia)

    Sorry, yes is this.

    Thread Starter José

    (@alquimia)

    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 5 years, 11 months ago by José.
    Plugin Author pimwick

    (@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">
            <?php
                $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() );
            ?>
        </div>
    </div>
    Thread Starter José

    (@alquimia)

    Hi, Thank you.

    Where I can put this code, to work?

    Plugin Author pimwick

    (@pimwick)

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

    /wp-content/plugins/pw-woocommerce-gift-cards/templates/woocommerce/emails/customer-pw-gift-card.php

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

    /wp-content/themes/<your_theme>/woocommerce/emails/customer-pw-gift-card.php

    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: https://docs.woocommerce.com/document/configuring-woocommerce-settings/#section-21

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

    Thread Starter José

    (@alquimia)

    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.