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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author pimwick

    (@pimwick)

    The Pro version has an option to include “Recipient Name” for a friendly name like “Uncle José”. Is this what you mean?

    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 “john.doe@email.com” in the “To:” email address field.

    Sorry, yes is this.

    Plugin Author pimwick

    (@pimwick)

    You can find out more about the Pro version here: https://www.pimwick.com/gift-cards/

    I’m going to mark this thread as Resolved. Let me know if you have any other questions, best of luck with your store!

    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 3 months, 1 week 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>

    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!

    Works perfect ^_^’
    Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.