Keine Beschreibung

customer-refunded-order.php 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Customer refunded order email (plain text)
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/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\Plain
  15. * @version 3.7.0
  16. */
  17. defined( 'ABSPATH' ) || exit;
  18. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n";
  19. echo esc_html( wp_strip_all_tags( $email_heading ) );
  20. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
  21. /* translators: %s: Customer first name */
  22. echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), $order->get_billing_first_name() ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
  23. if ( $partial_refund ) {
  24. /* translators: %s: Site title */
  25. echo sprintf( 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 ) ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
  26. } else {
  27. /* translators: %s: Site title */
  28. echo sprintf( 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 ) ) . "\n\n"; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
  29. }
  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. echo "\n----------------------------------------\n\n";
  38. /*
  39. * @hooked WC_Emails::order_meta() Shows order meta data.
  40. */
  41. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  42. /*
  43. * @hooked WC_Emails::customer_details() Shows customer details
  44. * @hooked WC_Emails::email_address() Shows email address
  45. */
  46. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  47. echo "\n\n----------------------------------------\n\n";
  48. /**
  49. * Show user-defined additional content - this is set in each email's settings.
  50. */
  51. if ( $additional_content ) {
  52. echo esc_html( wp_strip_all_tags( wptexturize( $additional_content ) ) );
  53. echo "\n\n----------------------------------------\n\n";
  54. }
  55. echo wp_kses_post( apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ) );