customer-refunded-order.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. * @author WooThemes
  15. * @package WooCommerce/Templates/Emails
  16. * @version 2.5.0
  17. */
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit;
  20. }
  21. /**
  22. * @hooked WC_Emails::email_header() Output the email header
  23. */
  24. do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
  25. <p><?php
  26. if ( $partial_refund ) {
  27. printf( __( 'Hi there. Your order on %s has been partially refunded.', 'woocommerce' ), get_option( 'blogname' ) );
  28. } else {
  29. printf( __( 'Hi there. Your order on %s has been refunded.', 'woocommerce' ), get_option( 'blogname' ) );
  30. }
  31. ?></p>
  32. <?php
  33. /**
  34. * @hooked WC_Emails::order_details() Shows the order details table.
  35. * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
  36. * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
  37. * @since 2.5.0
  38. */
  39. do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );
  40. /**
  41. * @hooked WC_Emails::order_meta() Shows order meta data.
  42. */
  43. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
  44. /**
  45. * @hooked WC_Emails::customer_details() Shows customer details
  46. * @hooked WC_Emails::email_address() Shows email address
  47. */
  48. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email );
  49. /**
  50. * @hooked WC_Emails::email_footer() Output the email footer
  51. */
  52. do_action( 'woocommerce_email_footer', $email );