• Resolved austriker27

    (@austriker27)


    Hello,

    I created an image for the gift card and would like to add it to the email that is going out with this plugin. I copied the email template to my child theme but am not sure how to add the image in the .php file. (It would be great if this ability was included in the plugin in the future)

Viewing 16 replies (of 16 total)
  • Plugin Author pimwick

    (@pimwick)

    Hi Art,

    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-active-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

    The Product object is available in the $item_data->product variable. For example, to output the product name you could do this:

    <?php
        echo $item_data->product->get_title();
    ?>

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

Viewing 16 replies (of 16 total)
  • The topic ‘Adding a photo to the gift card email template’ is closed to new replies.