/templates/emails/customer-invoice.php

  1. <?php 
  2. /** 
  3. * Customer invoice email 
  4. * 
  5. * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-invoice.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.  
  19. if ( ! defined( 'ABSPATH' ) ) { 
  20. exit; 
  21.  
  22. /** 
  23. * @hooked WC_Emails::email_header() Output the email header 
  24. */ 
  25. do_action( 'woocommerce_email_header', $email_heading, $email ); ?> 
  26.  
  27. <?php if ( $order->has_status( 'pending' ) ) : ?> 
  28. <p><?php printf( __( 'An order has been created for you on %1$s. To pay for this order please use the following link: %2$s', 'woocommerce' ), get_bloginfo( 'name', 'display' ), '<a href="' . esc_url( $order->get_checkout_payment_url() ) . '">' . __( 'pay', 'woocommerce' ) . '</a>' ); ?></p> 
  29. <?php endif; ?> 
  30.  
  31. <?php 
  32.  
  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. /** 
  42. * @hooked WC_Emails::order_meta() Shows order meta data. 
  43. */ 
  44. do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); 
  45.  
  46. /** 
  47. * @hooked WC_Emails::customer_details() Shows customer details 
  48. * @hooked WC_Emails::email_address() Shows email address 
  49. */ 
  50. do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); 
  51.  
  52. /** 
  53. * @hooked WC_Emails::email_footer() Output the email footer 
  54. */ 
  55. do_action( 'woocommerce_email_footer', $email ); 
.