Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there! 👋

    It sounds like the Product Notes for WooCommerce plugin might do the job for you. Here is a direct link to this plugin:

    https://ww.wp.xz.cn/plugins/product-notes-for-woocommerce/

    I hope this helps 🙂

    Thread Starter narmour

    (@narmour)

    I’m sorry, I used the wrong term when asking the question.
    It’s not Product Notes I need but Purchase Notes, found under the Advanced tab in the product data. By default the info appears on the page that displays after someone places an order as well as in the customer’s copy of the order email. I need these to display in the email copy of the order that the admin receives as well.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Great! Thanks for clarifying. 🙂

    By using the following snippet you should be able to achieve this:

    add_filter ('woocommerce_email_order_items_args', 'send_purchase_note_to_everyone');
    
    function send_purchase_note_to_everyone( $args ) {
    	$args['show_purchase_note']  = true;
      return $args;
    }

    To add this code, you could use the Code Snippet plugin.

    Cheers!

    Thread Starter narmour

    (@narmour)

    Thank you, that worked perfectly!

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Great!🙂

    If you have any further questions, you can start a new thread.

    Cheers!

    Thread Starter narmour

    (@narmour)

    I had added this code in a week ago with no issues, until today. WordPress sent an email saying:

    Your Site is Experiencing a Technical Issue

    They said the error was caught on this page:
    wp-admin/admin-ajax.php

    Error Details
    =============
    An error of type E_PARSE was caused in line 781 of the file functions.php. Error message: syntax error, unexpected ‘&’

    Line 781 is this section of the code that was provided for adding the purchase notes to the admin emails:

    add_filter (‘woocommerce_email_order_items_args’, ‘send_purchase_note_to_everyone’);

    I don’t see any issues on the site, it seems to be working fine and the admin panel is working fine. Do I need to do something to the code to fix this?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Include Product Notes in Admin Emails’ is closed to new replies.