/templates/emails/customer-request-texts.php

  1. <?php 
  2. /** 
  3. * Customer request texts email 
  4. * 
  5. * @author Isikom 
  6. * @package WooCommerce/Templates/Emails/HTML 
  7. * @version 2.0.0 
  8. */ 
  9.  
  10. if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 
  11. $order_id = $order->get_order_number(); 
  12.  
  13. $text_page_id = get_option('woocommerce_texts_page_id'); 
  14. $text_page_permalink = get_permalink( $text_page_id ) . '?order=' . ltrim ($order_id, '#'); 
  15. ?> 
  16.  
  17. <?php do_action('woocommerce_email_header', $email_heading); ?> 
  18.  
  19. <p><?php _e( "Your order to being processed needs your text. Follow the link and submit your texts.", 'woo_af2p' ); ?></p> 
  20.  
  21. <h2><?php echo __( 'Order:', 'woocommerce' ) . ' ' . $order_id ?></h2> 
  22.  
  23. <a target="_blank" href="<?php echo $text_page_permalink; ?>"><?php _e('Forms Page', 'woo_af2p'); ?></a> 
  24.  
  25. <?php do_action('woocommerce_email_footer'); ?> 
.