403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/coopermain/wp-content/themes/cooper/woocommerce/emails/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/coopermain/wp-content/themes/cooper/woocommerce/emails/fitter-completed-order.php
<?php
/**
 * Customer completed order email
 *
 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-completed-order.php.
 *
 * HOWEVER, on occasion WooCommerce will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen. When this occurs the version of the template file will be bumped and
 * the readme will list any important changes.
 *
 * @see https://docs.woocommerce.com/document/template-structure/
 * @package WooCommerce\Templates\Emails
 * @version 3.7.0
 */

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


$order = new WC_Order($order_id);
$fitter_id = get_post_meta($order_id, '_fitter_id', true);
/**
 * @var wp_Post
 */
$fitter = get_post($fitter_id);

/* translators: %s: Customer first name */ ?>
    <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $fitter->post_title ) ); ?></p>
    <br>
    <p><?php esc_html_e('The Cooper Tires® customer service team are pleased to confirm online order #' . $order_id . ' via the Cooper Tires® website.', 'woocommerce'); ?></p>
    <p>Once tyres have been fitted and the order complete don't forget to send an invoice to the Exclusive Tyre Distributors' accounts department for reimbursement.</p>
<?php
/*
$fields = [
        [
                'label'''
],
        // Get the Customer billing email
$billing_email  = $order->get_billing_email();

// Get the Customer billing phone
$billing_phone  = $order->get_billing_phone();

// Customer billing information details
$billing_first_name = $order->get_billing_first_name();
$billing_last_name  = $order->get_billing_last_name();
$billing_company    = $order->get_billing_company();
$billing_address_1  = $order->get_billing_address_1();
$billing_address_2  = $order->get_billing_address_2();
$billing_city       = $order->get_billing_city();
$billing_state      = $order->get_billing_state();
$billing_postcode   = $order->get_billing_postcode();
$billing_country    = $order->get_billing_country();
]*/
//wc_get_template( 'emails/email-customer-details.php', array( 'fields' => ['$fields'] ) );

wc_get_template(
    'emails/email-addresses.php',
    array(
        'order'         => $order,
        'sent_to_admin' => false,
        'is_fitter' => true
    )
);

echo '<h2 style="color: #0D3379; text-transform: uppercase">confirmed customer order</h2>';
echo LambAgency\WC_Custom_Emails\WC_Custom_Emails::get_email_content_fitting_window($order);

/*
 * @hooked WC_Emails::order_details() Shows the order details table.
 * @hooked WC_Structured_Data::generate_order_data() Generates structured data.
 * @hooked WC_Structured_Data::output_structured_data() Outputs structured data.
 * @since 2.5.0
 */
wc_get_template('emails/email-order-details.php',
    [
            'order' => $order,
            'sent_to_admin' => false,
            'plain_text' => false,
            'email' => false,
            'is_fitter' => false,
            'flag_2' => true
    ]);

/*
 * @hooked WC_Emails::order_meta() Shows order meta data.
 */
do_action( 'woocommerce_email_order_meta', $order, false, false, false );
?>

<div>
    <h3>Questions?</h3>
    <p>
        For any questions relating to this order, please contact the Cooper Tires® customer service team on <strong><a href="tel:1300756884">1300 756 884</a></strong> or <a href="/contact-us" target="_blank" style="color: #1B1B1B">via the website</a>.
    </p>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit