Нема описа

customer-refunded-order.php 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. /**
  3. * Customer refunded order email
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-refunded-order.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. defined( 'ABSPATH' ) || exit;
  18. /*
  19. * @hooked WC_Emails::email_header() Output the email header
  20. */
  21. do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
  22. <?php /* translators: %s: Customer first name */ ?>
  23. <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $order->get_billing_first_name() ) ); ?></p>
  24. <p>
  25. <?php
  26. if ( $partial_refund ) {
  27. /* translators: %s: Site title */
  28. printf( esc_html__( 'Your order on %s has been partially refunded. There are more details below for your reference:', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
  29. } else {
  30. /* translators: %s: Site title */
  31. printf( esc_html__( 'Your order on %s has been refunded. There are more details below for your reference:', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
  32. }
  33. ?>
  34. </p>
  35. <?php
  36. /*
  37. * @hooked WC_Emails::order_details() Shows the order details table.
  38. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
  39. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
  40. * @since 2.5.0
  41. */
  42. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  43. /*
  44. * @hooked WC_Emails::order_meta() Shows order meta data.
  45. */
  46. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  47. /*
  48. * @hooked WC_Emails::customer_details() Shows customer details
  49. * @hooked WC_Emails::email_address() Shows email address
  50. */
  51. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  52. /**
  53. * Show user-defined additional content - this is set in each email's settings.
  54. */
  55. if ( $additional_content ) {
  56. echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
  57. }
  58. /*
  59. * @hooked WC_Emails::email_footer() Output the email footer
  60. */
  61. do_action( 'woocommerce_email_footer', $email );