HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/themes/movedo-child/woocommerce/emails/customer-completed-order.php
<?php
/**
 * Customer completed order email
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
 *
 * @package WooCommerce\Templates\Emails
 * @version 10.4.0
 */

use Automattic\WooCommerce\Utilities\FeaturesUtil;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' );

/**
 * (Bilingual) Set the email language to the order/customer language when possible.
 * WooCommerce sets locale for emails internally in many cases, but this helps in bilingual setups.
 */
$customer_locale = method_exists( $order, 'get_customer_locale' ) ? $order->get_customer_locale() : '';
if ( $customer_locale ) {
	switch_to_locale( $customer_locale );
}

/**
 * Email header
 */
do_action( 'woocommerce_email_header', $email_heading, $email );

echo $email_improvements_enabled ? '<div class="email-introduction">' : '';
?>
<p>
	<?php
	if ( ! empty( $order->get_billing_first_name() ) ) {
		printf(
			esc_html__( 'Hi %s,', 'woocommerce' ),
			esc_html( $order->get_billing_first_name() )
		);
	} else {
		esc_html_e( 'Hi,', 'woocommerce' );
	}
	?>
</p>

<p><?php esc_html_e( 'We have finished processing your order.', 'woocommerce' ); ?></p>

<?php if ( $email_improvements_enabled ) : ?>
	<p><?php esc_html_e( 'Here’s a reminder of what you’ve ordered:', 'woocommerce' ); ?></p>
<?php endif; ?>

<?php
echo $email_improvements_enabled ? '</div>' : '';

/**
 * Order details table + structured data
 */
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email );

/**
 * Order meta
 */
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );

/**
 * Addresses (two columns in HTML, one column in plain text)
 */
if ( ! $plain_text ) : ?>

	<table width="100%" border="0" cellspacing="0" cellpadding="0" role="presentation" style="margin:0; padding:0;">
		<tr>
			<td valign="top" width="50%" style="padding:0 10px 0 0;">
				<h2 style="margin:0 0 10px 0; font-size:18px; line-height:1.2;">
					<?php echo esc_html__( 'Billing address', 'woocommerce' ); ?>
				</h2>

				<div style="border:1px solid #e5e5e5; padding:14px;">
					<address style="font-style:normal; line-height:1.6;">
						<?php echo wp_kses_post( $order->get_formatted_billing_address() ); ?>

						<?php if ( $order->get_billing_phone() ) : ?>
							<br><?php echo esc_html( $order->get_billing_phone() ); ?>
						<?php endif; ?>

						<?php if ( $order->get_billing_email() ) : ?>
							<br><?php echo esc_html( $order->get_billing_email() ); ?>
						<?php endif; ?>
					</address>
				</div>
			</td>

			<td valign="top" width="50%" style="padding:0 0 0 10px;">
				<h2 style="margin:0 0 10px 0; font-size:18px; line-height:1.2;">
					<?php echo esc_html__( 'Shipping address', 'woocommerce' ); ?>
				</h2>

				<div style="border:1px solid #e5e5e5; padding:14px;">
					<address style="font-style:normal; line-height:1.6;">
						<?php
						$shipping = $order->get_formatted_shipping_address();
						if ( $shipping ) {
							echo wp_kses_post( $shipping );
						} else {
							echo esc_html__( 'Same as billing address.', 'woocommerce' );
						}
						?>
					</address>
				</div>
			</td>
		</tr>
	</table>

<?php else : ?>

	<?php
	// Plain text version
	echo "\n" . esc_html__( 'Billing address', 'woocommerce' ) . ":\n";
	echo wp_strip_all_tags( $order->get_formatted_billing_address() ) . "\n\n";

	$shipping = $order->get_formatted_shipping_address();
	if ( $shipping ) {
		echo esc_html__( 'Shipping address', 'woocommerce' ) . ":\n";
		echo wp_strip_all_tags( $shipping ) . "\n";
	} else {
		echo esc_html__( 'Shipping address', 'woocommerce' ) . ":\n";
		echo esc_html__( 'Same as billing address.', 'woocommerce' ) . "\n";
	}
	?>

<?php endif; ?>

<?php
/**
 * Additional content
 */
if ( $additional_content ) {
	echo $email_improvements_enabled
		? '<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation"><tr><td class="email-additional-content">'
		: '';

	echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );

	echo $email_improvements_enabled ? '</td></tr></table>' : '';
}

/**
 * Email footer
 */
do_action( 'woocommerce_email_footer', $email );

if ( $customer_locale ) {
	restore_previous_locale();
}