customer-note.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Customer note email
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/customer-note.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @author WooThemes
  15. * @package WooCommerce/Templates/Emails/Plain
  16. * @version 2.5.0
  17. */
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit;
  20. }
  21. echo "= " . $email_heading . " =\n\n";
  22. echo __( "Hello, a note has just been added to your order:", 'woocommerce' ) . "\n\n";
  23. echo "----------\n\n";
  24. echo wptexturize( $customer_note ) . "\n\n";
  25. echo "----------\n\n";
  26. echo __( "For your reference, your order details are shown below.", 'woocommerce' ) . "\n\n";
  27. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  28. /**
  29. * @hooked WC_Emails::order_details() Shows the order details table.
  30. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
  31. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
  32. * @since 2.5.0
  33. */
  34. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  35. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  36. /**
  37. * @hooked WC_Emails::order_meta() Shows order meta data.
  38. */
  39. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  40. /**
  41. * @hooked WC_Emails::customer_details() Shows customer details
  42. * @hooked WC_Emails::email_address() Shows email address
  43. */
  44. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  45. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  46. echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );