Support » Plugin: WooCommerce » Include admin notes and system notes in the Customer note email

  • Resolved marciosironi

    (@marciosironi)


    the file ‘woocommerce/templates/emails/customer-note.php’ sends an email to the customer each time a customer note is created.

    But I would like to change the function so that any type of notes are sent, and not just customer notes.

    I believe that this is the line (line 31) that must be changed, but I don’t know what to change.

    <?php echo wpautop( wptexturize( make_clickable( $customer_note ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

    Would you help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Three Sons

    (@3sonsdevelopment)

    Hey @marciosironi,

    This is going to take a fair amount of development to enable. The best option to get this set up would be to hire a freelancer to do this for you. There are ones available at Codeable who could do this for you.

    Since this is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    Take care

    wundermatics

    (@wundermatics)

    Hi marciosironi,

    You could have a look at the plugin WunderAutomation (available on the plugin repo), it’s made for situations just like you describe.

    To solve this you would create a workflow in WunderAutomation that:

    1. Triggers when an order note is added to an order

    2. Optionally add one or more filters to remove messages that you for whatever reason don’t want to send (i.e order status change messages or Stripe messages)

    3. Add an action that sends an email to the customer email address using the WooCommerce template with the the order note content in it (You can also send plain text emails if that’s better for you).

    marciosironi

    (@marciosironi)

    Thanks for the indication of the plugin, but I’m looking for a function for this, or at least change it so that all notes behave like ‘customer notes’ (sent by email to the customer), because I’m developing a plugin and I would like to add this function .

    In practice, I need that when the system creates a note, or the admin creates a note, it is sent by email, just like customer notes.

    Plugin Support mouli

    (@mouli)

    Hi there,
    This is custom work that needs the input of a developer as suggested by my colleague.
    To help you out, you have access to the public repo here:
    https://github.com/woocommerce/woocommerce
    You can search for specific functions using the search field at the top of the page.

    If you are comfortable with coding yourself and have questions, I would recommend that you also join the WooCommerce Slack Community (https://woocommerceslack.herokuapp.com), or the Advanced WooCommerce Facebook group (https://www.facebook.com/groups/advanced.woocommerce). 

    I hope that helps you to figure it out.
    Feel free to get back to us if you have further questions.

    Plugin Support drwpcom

    (@drwpcom)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved. Please start a new thread if you have further questions.

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