| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.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 : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/woocommerce/templates/order/ |
Upload File : |
<?php /** * Display the Customer History metabox. * * This template is used to display the customer history metabox on the edit order screen. * * @see Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes\CustomerHistory * @package WooCommerce\Templates * @version 10.8.0 */ declare( strict_types=1 ); defined( 'ABSPATH' ) || exit; /** * Variables used in this file. * * @var int $orders_count The number of paid orders placed by the current customer. * @var float $total_spend The total money spent by the current customer. * @var float $avg_order_value The average money spent by the current customer. * @var string $tooltip The tooltip text for the "Total orders" heading. */ ?> <div class="customer-history order-attribution-metabox"> <h4> <?php esc_html_e( 'Total orders', 'woocommerce' ); echo wp_kses_post( wc_help_tip( $tooltip ) ); ?> </h4> <span class="order-attribution-total-orders"> <?php echo esc_html( $orders_count ); ?> </span> <h4> <?php esc_html_e( 'Total revenue', 'woocommerce' ); echo wp_kses_post( wc_help_tip( __( "This is the Customer Lifetime Value, or the total amount you have earned from this customer's orders.", 'woocommerce' ) ) ); ?> </h4> <span class="order-attribution-total-spend"> <?php echo wp_kses_post( wc_price( $total_spend ) ); ?> </span> <h4><?php esc_html_e( 'Average order value', 'woocommerce' ); ?></h4> <span class="order-attribution-average-order-value"> <?php echo wp_kses_post( wc_price( $avg_order_value ) ); ?> </span> </div>