Support Purchase Notes in Order Emails WooCommerce

WooCommerce ( Newer Versions) :

 

Older Version WooCommerce

 

Previous Post
Fixing the permission issue on Xampp Directory
Next Post
Order Email show product images – WooCommerce

No results found.

2 Comments. Leave new

  • Seems to work thanks but causes some errors in my PHP log. Any ideas?

    [Mar 21, 12:25:53] PHP Notice: Undefined variable: image_size in /wp-content/themes/jupiter-child/functions.php on line 106
    [Mar 21, 12:25:53] PHP Notice: Undefined variable: show_image in /wp-content/themes/jupiter-child/functions.php on line 105
    [Mar 21, 12:25:53] PHP Notice: Undefined variable: show_sku in /wp-content/themes/jupiter-child/functions.php on line 103
    [Mar 21, 12:25:53] PHP Notice: Undefined variable: show_download_links in /wp-content/themes/jupiter-child/functions.php on line 102
    [Mar 21, 12:25:53] PHP Notice: Undefined variable: plain_text in /wp-content/themes/jupiter-child/functions.php on line 98

    Reply
  • I used this method for awhile, but now it doesn’t work (after years of updates, etc.). This does, though, as of 12/30/20. Code should be placed appropriately in customer-booking-reminder.php (where you want it to appear) within your theme.


    get_product()->get_id(), ‘_purchase_note’, true);
    if ( $purchase_note NULL ) :
    ?>

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.

Menu