swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame^] | 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; // Exit if accessed directly |
| 4 | } |
| 5 | ?> |
| 6 | |
| 7 | <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?> |
| 8 | |
| 9 | <?php |
| 10 | $billing_email = $order->get_billing_email(); |
| 11 | $billing_phone = $order->get_billing_phone(); |
| 12 | |
| 13 | ?> |
| 14 | <p> |
| 15 | <?php |
| 16 | echo wp_kses( |
| 17 | sprintf( |
| 18 | // translators: 1) is a link to the payment re-authentication URL. |
| 19 | _x( 'Your pre-order is now available, but payment cannot be completed automatically. %1$s', 'In failed SCA authentication for a pre-order.', 'woocommerce-gateway-stripe' ), |
| 20 | '<a href="' . esc_url( $authorization_url ) . '">' . esc_html__( 'Authorize the payment now »', 'woocommerce-gateway-stripe' ) . '</a>' |
| 21 | ), |
| 22 | [ 'a' => [ 'href' => true ] ] |
| 23 | ); |
| 24 | ?> |
| 25 | </p> |
| 26 | |
| 27 | <?php if ( $email->get_custom_message() ) : ?> |
| 28 | <blockquote><?php echo wpautop( wptexturize( $email->get_custom_message() ) ); ?></blockquote> |
| 29 | <?php endif; ?> |
| 30 | |
| 31 | <?php |
| 32 | do_action( 'woocommerce_email_before_order_table', $order, false, $plain_text, $email ); |
| 33 | |
| 34 | /* |
| 35 | * @hooked WC_Emails::order_details() Shows the order details table. |
| 36 | * @hooked WC_Structured_Data::generate_order_data() Generates structured data. |
| 37 | * @hooked WC_Structured_Data::output_structured_data() Outputs structured data. |
| 38 | * @since 2.5.0 |
| 39 | */ |
| 40 | do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); |
| 41 | |
| 42 | /* |
| 43 | * @hooked WC_Emails::order_meta() Shows order meta data. |
| 44 | */ |
| 45 | do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); |
| 46 | |
| 47 | do_action( 'woocommerce_email_after_order_table', $order, false, $plain_text, $email ); |
| 48 | |
| 49 | /* |
| 50 | * @hooked WC_Emails::customer_details() Shows customer details |
| 51 | * @hooked WC_Emails::email_address() Shows email address |
| 52 | */ |
| 53 | do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); |
| 54 | |
| 55 | ?> |
| 56 | <p> |
| 57 | <?php esc_html_e( 'Thanks for shopping with us.', 'woocommerce-gateway-stripe' ); ?> |
| 58 | </p> |
| 59 | <?php |
| 60 | |
| 61 | /* |
| 62 | * @hooked WC_Emails::email_footer() Output the email footer |
| 63 | */ |
| 64 | do_action( 'woocommerce_email_footer', $email ); |