oont-contents/themes/oont-themev2/inc/templates/emails/exchange-request-message-admin.php
2025-02-08 15:10:23 +01:00

747 lines
No EOL
43 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* Return Request Message
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly.
}
$body = ! empty( $email->email_body ) ? nl2br( htmlspecialchars( $email->email_body ) ) : '';
$request_id = ! empty( $email->request_id ) ? $email->request_id : '';
$request = new SOFTOBA_Exchange_Request( $request_id );
$order_id = $request->order_id;
$customer_name = version_compare( WC()->version, '3.0.0', '<' ) ? $request->get_customer_link_legacy() : $request->get_customer_link();
// Get order admin URL
$order_post = get_post( $order_id );
$order_post_type_object = get_post_type_object( $order_post->post_type );
if ( ( $order_post_type_object ) && ( $order_post_type_object->_edit_link ) ) {
$order_url = admin_url( sprintf( $order_post_type_object->_edit_link . '&action=edit', $order_id ) );
} else {
$order_url = '';
}
// Get request admin URL
$request_post = get_post( $request_id );
$request_post_type_object = get_post_type_object( $request_post->post_type );
if ( ( $request_post_type_object ) && ( $request_post_type_object->_edit_link ) ) {
$request_url = admin_url( sprintf( $request_post_type_object->_edit_link . '&action=edit', $request_id ) );
} else {
$request_url = '';
}
$order_link = '<a href="' . esc_attr( $order_url ) . '">#' . wc_get_order( $order_id )->get_order_number() . '</a>';
$request_link = '<a href="' . esc_attr( $request_url ) . '">#' . $request_id . '</a>';
$order_data = wc_get_order( $request->order_id );
$order_total = $order_data->get_total() - $order_data->get_total_refunded();
$tax_enabled = wc_tax_enabled();
$order_customer_name = $order_data->get_billing_first_name() . ' ' . $order_data->get_billing_last_name();
$order_customer_tel = $order_data->get_billing_phone();
$order_customer_email = $order_data->get_billing_email();
$order_customer_address = $order_data->get_formatted_billing_address();
$order_shipping_address = $order_data->get_formatted_shipping_address();
$admin_email = get_option('admin_email');
$return_products = get_post_meta( $order_id, 'sobaoba_exchange_products', true );
$refund_amount = '0';
$order_items = $order_data->get_items( array( 'line_item', 'shipping', 'fee' ) );
?>
<head>
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG />
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml>
<![endif]-->
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="x-apple-disable-message-reformatting">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Order confirmation email template for Shopify -->
<style type="text/css" data-premailer="ignore">
/* What it does: Remove spaces around the email design added by some email clients. */
/* Beware: It can remove the padding / Margin and add a background color to the compose a reply window. */
html,
body {
Margin: 0 auto !important;
padding: 0 !important;
width: 100% !important;
height: 100% !important;
}
/* What it does: Stops email clients resizing small text. */
* {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* What it does: Forces Outlook.com to display emails full width. */
.ExternalClass {
width: 100%;
}
/* What is does: Centers email on Android 4.4 */
div[style*="Margin: 16px 0"] {
Margin: 0 !important;
}
/* What it does: Stops Outlook from adding extra spacing to tables. */
table,
th {
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
}
/* What it does: Fixes Outlook.com line height. */
.ExternalClass,
.ExternalClass * {
line-height: 100% !important;
}
/* What it does: Fixes webkit padding issue. Fix for Yahoo mail table alignment bug. Applies table-layout to the first 2 tables then removes for anything nested deeper. */
table {
border-spacing: 0 !important;
border-collapse: collapse !important;
border: none;
Margin: 0 auto;
}
div[style*="Margin: 16px 0"] {
Margin: 0 !important;
}
/* What it does: Uses a better rendering method when resizing images in IE. */
img {
-ms-interpolation-mode: bicubic;
}
/* What it does: Overrides styles added when Yahoo's auto-senses a link. */
.yshortcuts a {
border-bottom: none !important;
}
/* What it does: Overrides blue, underlined link auto-detected by iOS Mail. */
/* Create a class for every link style needed; this template needs only one for the link in the footer. */
/* What it does: A work-around for email clients meddling in triggered links. */
*[x-apple-data-detectors],
/* iOS */
.x-gmail-data-detectors,
/* Gmail */
.x-gmail-data-detectors *,
.aBn {
border-bottom: none !important;
cursor: default !important;
color: inherit !important;
text-decoration: none !important;
font-size: inherit !important;
font-family: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
}
/* What it does: Prevents Gmail from displaying an download button on large, non-linked images. */
.a6S {
display: none !important;
opacity: 0.01 !important;
}
/* If the above doesn't work, add a .g-img class to any image in question. */
img.g-img + div {
display: none !important;
}
/* What it does: Prevents underlining the button text in Windows 10 */
a,
a:link,
a:visited {
color: #ecba78;
text-decoration: none !important;
}
.header a {
color: #c3c3c3;
text-decoration: none;
text-underline: none;
}
.main a {
color: #ecba78;
text-decoration: none;
text-underline: none;
word-wrap: break-word;
}
.main .section.customer_and_shipping_address a,
.main .section.shipping_address_and_fulfillment_details a {
color: #666363;
text-decoration: none;
text-underline: none;
word-wrap: break-word;
}
.footer a {
color: #ecba78;
text-decoration: none;
text-underline: none;
}
/* What it does: Overrides styles added images. */
img {
border: none !important;
outline: none !important;
text-decoration: none !important;
}
/* What it does: Fixes fonts for Google WebFonts; */
[style*="Karla"] {
font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
[style*="Karla"] {
font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
[style*="Karla"] {
font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
[style*="Playfair Display"] {
font-family: 'Playfair Display', Georgia, serif !important;
}
td.menu_bar_1 a:hover,
td.menu_bar_6 a:hover {
color: #ecba78 !important;
}
th.related_product_wrapper.first {
border-right: 13px solid #ffffff;
padding-right: 6px;
}
th.related_product_wrapper.last {
border-left: 13px solid #ffffff;
padding-left: 6px;
}
</style>
<!--[if (mso)|(mso 16)]>
<style type="text/css" data-premailer="ignore">
a {text-decoration: none;}
</style>
<![endif]-->
<!--[if !mso]><!-->
<link href="https://fonts.googleapis.com/css?family=Karla:400,700%7CPlayfair+Display:700,400%7CKarla:700,400%7CKarla:700,700" rel="stylesheet" type="text/css" data-premailer="ignore">
<!--<![endif]-->
<style type="text/css" data-premailer="ignore">
/* Media Queries */
/* What it does: Removes right gutter in Gmail iOS app */
@media only screen and (min-device-width: 375px) and (max-device-width: 413px) {
/* iPhone 6 and 6+ */
.container {
min-width: 375px !important;
}
}
/* Main media query for responsive styles */
@media only screen and (max-width:480px) {
/* What it does: Overrides email-container's desktop width and forces it into a 100% fluid width. */
.email-container {
width: 100% !important;
min-width: 100% !important;
}
.section > th {
padding: 13px 26px 13px 26px !important;
}
.section.divider > th {
padding: 26px 26px !important;
}
.main .section:first-child > th,
.main .section:first-child > td {
padding-top: 26px !important;
}
.main .section:nth-last-child(2) > th,
.main .section:nth-last-child(2) > td {
padding-bottom: 52px !important;
}
.section.recommended_products > th,
.section.discount > th {
padding: 26px 26px !important;
}
/* What it does: Forces images to resize to the width of their container. */
img.fluid,
img.fluid-centered {
width: 100% !important;
min-width: 100% !important;
max-width: 100% !important;
height: auto !important;
Margin: auto !important;
box-sizing: border-box;
}
/* and center justify these ones. */
img.fluid-centered {
Margin: auto !important;
}
/* What it does: Forces table cells into full-width rows. */
th.stack-column,
th.stack-column-left,
th.stack-column-center,
th.related_product_wrapper,
.column_1_of_2,
.column_2_of_2 {
display: block !important;
width: 100% !important;
min-width: 100% !important;
direction: ltr !important;
box-sizing: border-box;
}
/* and left justify these ones. */
th.stack-column-left {
text-align: left !important;
}
/* and center justify these ones. */
th.stack-column-center,
th.related_product_wrapper {
text-align: center !important;
border-right: none !important;
border-left: none !important;
}
.column_button,
.column_button > table,
.column_button > table th {
width: 100% !important;
text-align: center !important;
Margin: 0 !important;
}
.column_1_of_2 {
padding-bottom: 26px !important;
}
.column_1_of_2 th {
padding-right: 0 !important;
}
.column_2_of_2 th {
padding-left: 0 !important;
}
.column_text_after_button {
padding: 0 13px !important;
}
/* Adjust product images */
th.table-stack {
padding: 0 !important;
}
th.product-image-wrapper {
padding: 26px 0 13px 0 !important;
}
img.product-image {
width: 240px !important;
max-width: 240px !important;
}
tr.row-border-bottom th.product-image-wrapper {
border-bottom: none !important;
}
th.related_product_wrapper.first,
th.related_product_wrapper.last {
padding-right: 0 !important;
padding-left: 0 !important;
}
.text_banner th.banner_container {
padding: 13px !important;
}
.mobile_app_download .column_1_of_2 .image_container {
padding-bottom: 0 !important;
}
.mobile_app_download .column_2_of_2 .image_container {
padding-top: 0 !important;
}
}
</style>
<style type="text/css" data-premailer="ignore">
/* Custom Media Queries */
@media only screen and (max-width:480px) {
.column_logo {
display: block !important;
width: 100% !important;
min-width: 100% !important;
direction: ltr !important;
text-align: center !important;
}
p,
.column_1_of_2 th p,
.column_2_of_2 th p,
.order_notes *,
.invoice_link * {
text-align: center !important;
}
.line-item-description p {
text-align: left !important;
}
.line-item-price p,
.line-item-qty p,
.line-item-line-price p {
text-align: right !important;
}
h1,
h2,
h3,
.column_1_of_2 th,
.column_2_of_2 th {
text-align: center !important;
}
td.order-table-title {
text-align: center !important;
}
.footer .column_1_of_2 {
border-right: 0 !important;
border-bottom: 0 !important;
}
.footer .section_wrapper_th {
padding: 0 17px;
}
}
</style>
</head>
<body class="body" id="body" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#ecba78" style="-webkit-text-size-adjust: none; -ms-text-size-adjust: none; margin: 0; padding: 0;">
<!-- BEGIN: CONTAINER -->
<table class="container container_full" cellpadding="0" cellspacing="0" border="0" width="100%" style="border-collapse: collapse; min-width: 100%;" role="presentation" bgcolor="#ecba78">
<tbody>
<tr>
<th valign="top" style="mso-line-height-rule: exactly;">
<center style="width: 100%;">
<table border="0" width="600" cellpadding="0" cellspacing="0" align="center" style="width: 600px; min-width: 600px; max-width: 600px; margin: auto;" class="email-container" role="presentation">
<tbody>
<tr>
<th valign="top" style="mso-line-height-rule: exactly;">
<!-- BEGIN : SECTION : HEADER -->
<table class="section_wrapper header" data-id="header" id="section-header" border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation" bgcolor="#ffffff">
<tbody>
<tr>
<td class="section_wrapper_th" style="mso-line-height-rule: exactly; padding-top: 52px; padding-bottom: 26px;" bgcolor="#ffffff">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th class="column_logo" style="mso-line-height-rule: exactly; padding-top: 13px; padding-bottom: 13px;" align="center" bgcolor="#ffffff">
<!-- Logo : BEGIN -->
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" target="_blank" style="color: #c3c3c3; text-decoration: none !important; text-underline: none;">
<img src="<?php echo get_stylesheet_directory_uri() . '/assets/images/logo.png'; ?>" class="logo " width="96" border="0" style="width: 96px; height: auto !important; display: block; text-align: center; margin: auto;">
</a>
<!-- Logo : END -->
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END : SECTION : HEADER -->
<!-- BEGIN : SECTION : MAIN -->
<table class="section_wrapper main" data-id="main" id="section-main" border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation" bgcolor="#ffffff">
<tbody>
<tr>
<td class="section_wrapper_th" style="mso-line-height-rule: exactly;" bgcolor="#ffffff">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" id="mixContainer" role="presentation">
<!-- BEGIN SECTION: Heading -->
<tbody>
<tr id="section-1468266" class="section heading">
<th style="mso-line-height-rule: exactly; color: #4b4b4b; padding: 26px 52px 13px;" bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" border="0" width="100%" role="presentation" style="color: #4b4b4b;" bgcolor="#ffffff">
<tbody>
<tr style="color: #4b4b4b;" bgcolor="#ffffff">
<th style="mso-line-height-rule: exactly; color: #4b4b4b;" bgcolor="#ffffff" valign="top">
<h1 data-key="1468266_heading" style="font-family: Georgia,serif,'Playfair Display'; font-size: 28px; line-height: 46px; font-weight: 700; color: #4b4b4b; text-transform: none; background-color: #ffffff; margin: 0;text-align:center;">You have received a exchange request.</h1>
</th>
</tr>
</tbody>
</table>
</th>
</tr>
<!-- END SECTION: Heading -->
<!-- BEGIN SECTION: Introduction -->
<tr id="section-1468267" class="section introduction">
<th style="mso-line-height-rule: exactly; padding: 13px 52px;" bgcolor="#ffffff">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0 0 13px;" align="center"> <span data-key="1468267_greeting_text" style="text-align: center; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363;">
<?php echo $customer_name; ?>, made a request for exchange.</span>
</p>
<p data-key="1468267_introduction_text" class="text" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 13px 0;" align="center"> </p>
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 13px 0;" align="center">You've got your exchange request!</p>
</th>
</tr>
<!-- END SECTION: Introduction -->
<!-- BEGIN SECTION: Order Number And Date -->
<tr id="section-1468270" class="section order_number_and_date">
<th style="mso-line-height-rule: exactly; padding: 13px 52px;" bgcolor="#ffffff">
<h2 style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; color: #4b4b4b; font-size: 20px; line-height: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0;text-align:center;">
<span data-key="1468270_order_number">Order No. #</span> <?php echo $order_link; ?>
</h2>
</th>
</tr>
<!-- END SECTION: Order Number And Date -->
<!-- BEGIN SECTION: Products With Pricing -->
<tr id="section-1468271" class="section products_with_pricing">
<!-- Bold 1 -->
<!-- end Bold 1 -->
<th style="mso-line-height-rule: exactly; padding: 13px 52px;" bgcolor="#ffffff">
<table class="table-inner" cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th class="product-table" style="mso-line-height-rule: exactly;" bgcolor="#ffffff" valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th colspan="2" class="product-table-h3-wrapper" style="mso-line-height-rule: exactly;" bgcolor="#ffffff" valign="top">
<h3 data-key="1468271_item" style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; color: #bdbdbd; font-size: 16px; line-height: 52px; font-weight: 700; text-transform: uppercase; border-bottom-width: 2px; border-bottom-color: #dadada; border-bottom-style: solid; letter-spacing: 1px; margin: 0;" align="left">Exchange Request Items</h3> </th>
</tr>
<?php
foreach ( $order_items as $item_id => $item ) {
foreach( $return_products['products'] as $key => $return_product ){
if( $return_product['item_id'] == $item_id ) {
$item_type = version_compare( WC()->version, '3.0.0', '<' ) ? $item['type'] : $item->get_type();
if ( 'line_item' == $item_type ) {
$product = empty( $item['variation_id'] ) ? wc_get_product( $item['product_id'] ) : wc_get_product( $item['variation_id'] );
if ( ! $product || ! $product->exists() ) { ?>
<tr><td><?php esc_html_e( 'The requested product does not exist.', 'astra' ); ?></td></tr>
<?php
continue;
}
$qty_requested = '0';
$item_value = $item['line_total'] / $item['qty'];
$return_total += $item_value;
$ex_item_total = $item_value * $return_product['eqty'];
$image_id = $product->get_image_id();
$thumbnail = $product ? apply_filters( 'woocommerce_admin_order_item_thumbnail', $product->get_image( 'thumbnail', array( 'title' => '' ), false ), $item_id, $item ) : '';
?>
<tr class="row-border-bottom">
<th class="table-stack product-image-wrapper stack-column-center" width="1" style="mso-line-height-rule: exactly; border-bottom-width: 2px; border-bottom-color: #dadada; border-bottom-style: solid; padding: 13px 13px 13px 0;" bgcolor="#ffffff" valign="middle">
<img width="140" class="product-image" src="<?php echo wp_get_attachment_image_src( $image_id, 'thumbnail' )[0]; ?>" alt="Product Image" style="vertical-align: middle; text-align: center; width: 140px; max-width: 140px; height: auto !important; border-radius: 1px; padding: 0px;"> </th>
<th class="product-details-wrapper table-stack stack-column" style="mso-line-height-rule: exactly; padding-top: 13px; padding-bottom: 13px; border-bottom-width: 2px; border-bottom-color: #dadada; border-bottom-style: solid;" bgcolor="#ffffff" valign="middle">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th class="line-item-description" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; padding: 13px 6px 13px 0;" align="left" bgcolor="#ffffff" valign="top">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="left">
<a href="<?php echo esc_url( get_permalink( $item['product_id'] ) ); ?>" target="_blank" style="color: #666363; text-decoration: none !important; text-underline: none; word-wrap: break-word; text-align: left !important; font-weight: bold;">
<?php echo wp_kses_post( $item->get_name() ); ?>
</a><br>
<span class="muted" style="text-align: center; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 12px; line-height: 22px; font-weight: normal; color: #bdbdbd; word-break: break-all;">
<strong>Ordered variation: </strong>
<?php
$get_variation = new WC_Product_Variation( $return_product['variation_id'] );
$get_variation_attributes = $get_variation->get_variation_attributes();
echo wc_get_formatted_variation( $get_variation_attributes, true );
?>
</span><br>
<span class="muted" style="text-align: center; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 12px; line-height: 22px; font-weight: normal; color: #bdbdbd; word-break: break-all;">
<strong>Requested variation: </strong>
<?php
$get_ex_variation = new WC_Product_Variation( $return_product['ex_variation_id'] );
$get_ex_variation_attributes = $get_ex_variation->get_variation_attributes();
echo wc_get_formatted_variation( $get_ex_variation_attributes, true );
?>
</span>
</th>
<th style="mso-line-height-rule: exactly;" bgcolor="#ffffff" valign="top"></th>
<th class="right line-item-qty" width="1" style="mso-line-height-rule: exactly; white-space: nowrap; padding: 13px 0 13px 13px;" align="right" bgcolor="#ffffff" valign="top">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="right"> ×&nbsp; <?php echo esc_html( $return_product['eqty'] ); ?> </p>
</th>
<th class="right line-item-line-price" width="1" style="mso-line-height-rule: exactly; white-space: nowrap; padding: 13px 0 13px 26px;" align="right" bgcolor="#ffffff" valign="top">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="right"> <?php echo wc_price( $ex_item_total, array( 'currency' => $order_data->get_currency() ) ); ?> </p>
</th>
</tr>
</tbody>
</table>
</th>
</tr>
<?php } } } }?>
</tbody>
</table>
</th>
</tr>
<tr>
<th class="pricing-table" style="mso-line-height-rule: exactly; padding: 13px 0;" bgcolor="#ffffff" valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%;" role="presentation">
<tbody>
<tr class="pricing-table-total-row">
<th class="table-title" data-key="1468271_total" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: bold; color: #666363; width: 65%; padding: 6px 0;" align="left" bgcolor="#ffffff" valign="top">Order Total</th>
<th class="table-text" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; width: 35%; padding: 6px 0;" align="right" bgcolor="#ffffff" valign="middle"><?php echo wc_price( $order_data->get_total(), array( 'currency' => $order_data->get_currency() ) ); ?></th>
</tr>
</tbody>
</table>
</th>
</tr>
</tbody>
</table>
</th>
</tr>
<!-- END SECTION: Products With Pricing -->
<!-- BEGIN SECTION: Payment Info -->
<tr id="section-1468272" class="section payment_info">
<th style="mso-line-height-rule: exactly; padding: 13px 52px;" bgcolor="#ffffff">
<table class="table-inner" cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%;" role="presentation">
<!-- PAYMENT INFO -->
<tbody>
<tr>
<th colspan="2" style="mso-line-height-rule: exactly;" bgcolor="#ffffff" valign="top">
<h3 data-key="1468272_payment_info" style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; color: #bdbdbd; font-size: 16px; line-height: 52px; font-weight: 700; text-transform: uppercase; border-bottom-width: 0; border-bottom-color: #dadada; border-bottom-style: solid; letter-spacing: 1px; margin: 0;" align="left">Payment Info</h3>
</th>
</tr>
<!-- PAYMENT METHOD IMAGE -->
<tr>
<th class="table-title" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: bold; color: #666363; width: 65%; padding: 6px 0;" align="left" bgcolor="#ffffff" valign="top">
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="min-width: 100%; font-weight: bold;" role="presentation">
<tbody>
<tr style="font-weight: bold;">
<th style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: bold; color: #666363; padding: 8px 0;" align="left" bgcolor="#ffffff" valign="middle">
<?php
if ( $order_data->get_payment_method_title() ) {
/* translators: 1: payment date. 2: payment method */
echo esc_html( sprintf( __( '%1$s via %2$s', 'astra' ), $order_data->get_date_paid()->date_i18n( get_option( 'date_format' ) ), $order_data->get_payment_method_title() ) );
} else {
echo esc_html( $order_data->get_date_paid()->date_i18n( get_option( 'date_format' ) ) );
}
?>
</th>
</tr>
</tbody>
</table>
</th>
<th class="table-text" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; width: 35%; padding: 13px 0;" align="right" bgcolor="#ffffff" valign="middle">
<?php echo wc_price( $order_data->get_total(), array( 'currency' => $order_data->get_currency() ) ); ?>
</th>
</tr>
</tbody>
</table>
</th>
</tr>
<!-- END SECTION: Payment Info -->
<!-- BEGIN SECTION: Customer And Shipping Address -->
<tr id="section-1468273" class="section customer_and_shipping_address">
<!-- BEGIN : 2 COLUMNS : BILL_TO -->
<th style="mso-line-height-rule: exactly; padding: 13px 52px;" bgcolor="#ffffff">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<!-- BEGIN : Column 1 of 2 : BILL_TO -->
<th width="50%" class="column_1_of_2 column_bill_to " style="mso-line-height-rule: exactly;" align="left" bgcolor="#ffffff" valign="top">
<table align="center" border="0" width="100%" cellpadding="0" cellspacing="0" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th style="mso-line-height-rule: exactly; padding-right: 5%;" align="left" bgcolor="#ffffff" valign="top">
<h3 data-key="1468273_bill_to" style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; color: #bdbdbd; font-size: 16px; line-height: 52px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0;" align="left">Billing Info</h3> </th>
</tr>
<tr>
<th class="billing_address " style="mso-line-height-rule: exactly; padding-right: 5%;" align="left" bgcolor="#ffffff" valign="top">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="left">
<?php echo $order_customer_name; ?>
<?php echo $order_customer_address; ?>
<br> <a href="mailto:<?php echo $order_customer_email; ?>" style="color: #ecba78; text-decoration: none !important; text-underline: none; word-wrap: break-word;" target="_blank"><?php echo $order_customer_email; ?></a></p>
</th>
</tr>
</tbody>
</table>
</th>
<!-- END : Column 1 of 2 : BILL_TO -->
<!-- BEGIN : Column 2 of 2 : SHIP_TO -->
<th width="50%" class="column_2_of_2 column_ship_to " style="mso-line-height-rule: exactly;" align="right" bgcolor="#ffffff" valign="top">
<table align="center" border="0" width="100%" cellpadding="0" cellspacing="0" style="min-width: 100%;" role="presentation">
<tbody>
<tr>
<th style="mso-line-height-rule: exactly; padding-left: 5%;" align="right" bgcolor="#ffffff" valign="top">
<h3 data-key="1468273_ship_to" style="font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; color: #bdbdbd; font-size: 16px; line-height: 52px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0;" align="right">Shipping Address</h3> </th>
</tr>
<tr>
<th class="shipping_address " style="mso-line-height-rule: exactly; padding-left: 5%;" align="right" bgcolor="#ffffff" valign="top">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="right">
<?php echo $order_customer_name; ?>
<?php echo $order_shipping_address; ?>
<br> </p>
</th>
</tr>
</tbody>
</table>
</th>
<!-- END : Column 2 of 2 : SHIP_TO -->
</tr>
</tbody>
</table>
</th>
<!-- END : 2 COLUMNS : SHIP_TO -->
</tr>
<!-- END SECTION: Customer And Shipping Address -->
<!-- BEGIN SECTION: Divider -->
<tr id="section-1468275" class="section divider">
<th style="mso-line-height-rule: exactly; padding: 26px 52px;" bgcolor="#ffffff">
<table cellspacing="0" cellpadding="0" border="0" width="100%" role="presentation">
<tbody>
<tr>
<th style="mso-line-height-rule: exactly; border-top-width: 2px; border-top-color: #dadada; border-top-style: solid;" bgcolor="#ffffff" valign="top"> </th>
</tr>
</tbody>
</table>
</th>
</tr>
<!-- END SECTION: Divider -->
<!-- BEGIN SECTION: Closing Text -->
<tr id="section-1468276" class="section closing_text">
<th data-key="1468276_closing_text" class="text" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; padding: 13px 52px 52px;" align="center" bgcolor="#ffffff">
<p style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 16px; line-height: 26px; font-weight: 400; color: #666363; margin: 0;" align="center">If you need help with anything please don't hesitate to drop us an email: <?php echo $admin_email; ?> :)</p>
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END : SECTION : MAIN -->
<!-- BEGIN : SECTION : FOOTER -->
<table class="section_wrapper footer" data-id="footer" id="section-footer" border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation" bgcolor="#ffffff">
<tbody>
<tr>
<td class="section_wrapper_th" style="mso-line-height-rule: exactly; padding: 0 52px;" bgcolor="#ffffff">
<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" style="min-width: 100%;" role="presentation">
<!-- BEGIN : 2 COLUMNS : SOCIAL_BLOCK -->
<tbody>
<tr>
<th data-id="store-info" style="mso-line-height-rule: exactly;" bgcolor="#ffffff">
<table border="0" width="100%" cellpadding="0" cellspacing="0" role="presentation">
<!-- Store Website : BEGIN -->
<tbody>
<tr>
<th class="column_shop_block1 " width="100%" style="mso-line-height-rule: exactly; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Arial,'Karla'; font-size: 14px; line-height: 24px; font-weight: 400; color: #a3a1a1; text-transform: none; padding-bottom: 13px; padding-top: 26px;" align="center" bgcolor="#ffffff"> <a href="<?php echo home_url( '/' ); ?>" target="_blank" data-key="section_shop_block1" style="color: #ecba78; text-decoration: none !important; text-underline: none; font-size: 14px; font-weight: 400; text-transform: none;"><?php echo get_bloginfo('name'); ?></a> </th>
</tr>
<!-- Store Website : END -->
</tbody>
</table>
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<!-- END : SECTION : FOOTER -->
</th>
</tr>
</tbody>
</table>
</center>
</th>
</tr>
</tbody>
</table>
<!-- END : CONTAINER -->
</body>