/templates/emails/plain/admin-failed-order.php

  1. <?php 
  2. /** 
  3. * Admin failed order email (plain text) 
  4. * 
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/plain/admin-failed-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/Plain 
  16. * @version 2.5.0 
  17. */ 
  18.  
  19. if ( ! defined( 'ABSPATH' ) ) { 
  20. exit; 
  21.  
  22. echo "= " . $email_heading . " =\n\n"; 
  23.  
  24. echo sprintf( __( 'Payment for order #%1$d from %2$s has failed. The order was as follows:', 'woocommerce' ), $order->get_id(), $order->get_formatted_billing_full_name() ) . "\n\n"; 
  25.  
  26. echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; 
  27.  
  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.  
  36. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; 
  37.  
  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. /** 
  44. * @hooked WC_Emails::customer_details() Shows customer details 
  45. * @hooked WC_Emails::email_address() Shows email address 
  46. */ 
  47. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); 
  48.  
  49. echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n"; 
  50.  
  51. echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) ); 
.