Nav apraksta

customer-note.php 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Customer note email
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/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. * @package WooCommerce\Templates\Emails
  15. * @version 3.7.0
  16. */
  17. if ( ! defined( 'ABSPATH' ) ) {
  18. exit;
  19. }
  20. /*
  21. * @hooked WC_Emails::email_header() Output the email header
  22. */
  23. do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
  24. <?php /* translators: %s: Customer first name */ ?>
  25. <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
  26. <p><?php esc_html_e( 'The following note has been added to your order:', 'woocommerce' ); ?></p>
  27. <blockquote><?php echo wpautop( wptexturize( make_clickable( $customer_note ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></blockquote>
  28. <p><?php esc_html_e( 'As a reminder, here are your order details:', 'woocommerce' ); ?></p>
  29. <?php
  30. /*
  31. * @hooked WC_Emails::order_details() Shows the order details table.
  32. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
  33. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
  34. * @since 2.5.0
  35. */
  36. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  37. /*
  38. * @hooked WC_Emails::order_meta() Shows order meta data.
  39. */
  40. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  41. /*
  42. * @hooked WC_Emails::customer_details() Shows customer details
  43. * @hooked WC_Emails::email_address() Shows email address
  44. */
  45. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  46. /**
  47. * Show user-defined additional content - this is set in each email's settings.
  48. */
  49. if ( $additional_content ) {
  50. echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
  51. }
  52. /*
  53. * @hooked WC_Emails::email_footer() Output the email footer
  54. */
  55. do_action( 'woocommerce_email_footer', $email );