| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.8/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 8.7.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. */ ?> <div class="customer-history order-attribution-metabox"> <h4> <?php esc_html_e( 'Total orders', 'woocommerce' ); echo wp_kses_post( wc_help_tip( __( 'Total number of non-cancelled, non-failed orders for this customer, including the current one.', 'woocommerce' ) ) ); ?> </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>