plugin updates
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* Show error messages
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/notices/error.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
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! $notices ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$multiple = count( $notices ) > 1;
|
||||
|
||||
?>
|
||||
<div class="wc-block-components-notice-banner is-error" role="alert" <?php echo $multiple ? '' : wc_get_notice_data_attr( $notices[0] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php if ( $multiple ) { ?>
|
||||
<p class="wc-block-components-notice-banner__summary"><?php esc_html_e( 'The following problems were found:', 'woocommerce' ); ?></p>
|
||||
<ul>
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<li<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
} else {
|
||||
echo wc_kses_notice( $notices[0]['notice'] );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Show info messages
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/notices/notice.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
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! $notices ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<div class="wc-block-components-notice-banner is-info"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> role="alert">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* Show success messages
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/notices/success.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
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! $notices ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<div class="wc-block-components-notice-banner is-success"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> role="alert">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates
|
||||
* @version 7.3.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
@@ -27,7 +27,7 @@ $calculator_text = '';
|
||||
<tr class="woocommerce-shipping-totals shipping">
|
||||
<th><?php echo wp_kses_post( $package_name ); ?></th>
|
||||
<td data-title="<?php echo esc_attr( $package_name ); ?>">
|
||||
<?php if ( $available_methods ) : ?>
|
||||
<?php if ( isset( $available_methods ) && is_array( $available_methods ) ) : ?>
|
||||
<ul id="shipping_method" class="woocommerce-shipping-methods">
|
||||
<?php foreach ( $available_methods as $method ) : ?>
|
||||
<li>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates\Emails
|
||||
* @version 5.6.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
@@ -36,6 +36,19 @@ $shipping = $order->get_formatted_shipping_address();
|
||||
<?php if ( $order->get_billing_email() ) : ?>
|
||||
<br/><?php echo esc_html( $order->get_billing_email() ); ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
/**
|
||||
* Fires after the core address fields in emails.
|
||||
*
|
||||
* @since 8.6.0
|
||||
*
|
||||
* @param string $type Address type. Either 'billing' or 'shipping'.
|
||||
* @param WC_Order $order Order instance.
|
||||
* @param bool $sent_to_admin If this email is being sent to the admin or not.
|
||||
* @param bool $plain_text If this email is plain text or not.
|
||||
*/
|
||||
do_action( 'woocommerce_email_customer_address_section', 'billing', $order, $sent_to_admin, false );
|
||||
?>
|
||||
</address>
|
||||
</td>
|
||||
<?php if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping ) : ?>
|
||||
@@ -47,6 +60,19 @@ $shipping = $order->get_formatted_shipping_address();
|
||||
<?php if ( $order->get_shipping_phone() ) : ?>
|
||||
<br /><?php echo wc_make_phone_clickable( $order->get_shipping_phone() ); ?>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
/**
|
||||
* Fires after the core address fields in emails.
|
||||
*
|
||||
* @since 8.6.0
|
||||
*
|
||||
* @param string $type Address type. Either 'billing' or 'shipping'.
|
||||
* @param WC_Order $order Order instance.
|
||||
* @param bool $sent_to_admin If this email is being sent to the admin or not.
|
||||
* @param bool $plain_text If this email is plain text or not.
|
||||
*/
|
||||
do_action( 'woocommerce_email_customer_address_section', 'shipping', $order, $sent_to_admin, false );
|
||||
?>
|
||||
</address>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates\Emails
|
||||
* @version 7.4.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
@@ -165,6 +165,17 @@ body {
|
||||
border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
|
||||
}
|
||||
|
||||
.additional-fields {
|
||||
padding: 12px 12px 0;
|
||||
color: <?php echo esc_attr( $text_lighter_20 ); ?>;
|
||||
border: 1px solid <?php echo esc_attr( $body_darker_10 ); ?>;
|
||||
list-style: none outside;
|
||||
}
|
||||
|
||||
.additional-fields li {
|
||||
margin: 0 0 12px 0;
|
||||
}
|
||||
|
||||
.text {
|
||||
color: <?php echo esc_attr( $text ); ?>;
|
||||
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
*
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates\Emails\Plain
|
||||
* @version 5.6.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
@@ -28,6 +28,18 @@ if ( $order->get_billing_email() ) {
|
||||
echo $order->get_billing_email() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires after the core address fields in emails.
|
||||
*
|
||||
* @since 8.6.0
|
||||
*
|
||||
* @param string $type Address type. Either 'billing' or 'shipping'.
|
||||
* @param WC_Order $order Order instance.
|
||||
* @param bool $sent_to_admin If this email is being sent to the admin or not.
|
||||
* @param bool $plain_text If this email is plain text or not.
|
||||
*/
|
||||
do_action( 'woocommerce_email_customer_address_section', 'billing', $order, $sent_to_admin, true );
|
||||
|
||||
if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) {
|
||||
$shipping = $order->get_formatted_shipping_address();
|
||||
|
||||
@@ -38,5 +50,17 @@ if ( ! wc_ship_to_billing_address_only() && $order->needs_shipping_address() ) {
|
||||
if ( $order->get_shipping_phone() ) {
|
||||
echo $order->get_shipping_phone() . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
}
|
||||
|
||||
/**
|
||||
* Fires after the core address fields in emails.
|
||||
*
|
||||
* @since 8.6.0
|
||||
*
|
||||
* @param string $type Address type. Either 'billing' or 'shipping'.
|
||||
* @param WC_Order $order Order instance.
|
||||
* @param bool $sent_to_admin If this email is being sent to the admin or not.
|
||||
* @param bool $plain_text If this email is plain text or not.
|
||||
*/
|
||||
do_action( 'woocommerce_email_customer_address_section', 'shipping', $order, $sent_to_admin, true );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,41 +10,24 @@
|
||||
* 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/
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.5.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( empty( $notices ) || ! is_array( $notices ) ) {
|
||||
if ( ! $notices ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$multiple = count( $notices ) > 1;
|
||||
|
||||
?>
|
||||
<div class="wc-block-components-notice-banner is-error" role="alert" <?php echo $multiple ? '' : wc_get_notice_data_attr( $notices[0] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php if ( $multiple ) { ?>
|
||||
<p class="wc-block-components-notice-banner__summary"><?php esc_html_e( 'The following problems were found:', 'woocommerce' ); ?></p>
|
||||
<ul>
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<li<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
} else {
|
||||
echo wc_kses_notice( $notices[0]['notice'] );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
<ul class="woocommerce-error" role="alert">
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<li<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Show info messages
|
||||
* Show messages
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/notices/notice.php.
|
||||
*
|
||||
@@ -10,13 +10,13 @@
|
||||
* 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/
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.5.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
if ( ! $notices ) {
|
||||
@@ -26,12 +26,7 @@ if ( ! $notices ) {
|
||||
?>
|
||||
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<div class="wc-block-components-notice-banner is-info"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> role="alert">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
<div class="woocommerce-info"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Show success messages
|
||||
* Show messages
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/woocommerce/notices/success.php.
|
||||
*
|
||||
@@ -10,28 +10,21 @@
|
||||
* 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/
|
||||
* @see https://woo.com/document/template-structure/
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.5.0
|
||||
* @version 8.6.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( ! $notices ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php foreach ( $notices as $notice ) : ?>
|
||||
<div class="wc-block-components-notice-banner is-success"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> role="alert">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false">
|
||||
<path d="M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"></path>
|
||||
</svg>
|
||||
<div class="wc-block-components-notice-banner__content">
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
<div class="woocommerce-message"<?php echo wc_get_notice_data_attr( $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> role="alert">
|
||||
<?php echo wc_kses_notice( $notice['notice'] ); ?>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Display the Order Attribution Data metabox.
|
||||
* Display the Order Attribution details metabox.
|
||||
*
|
||||
* This template is used to display the order source data metabox on the edit order screen.
|
||||
* This template is used to display the order attribution data metabox on the edit order screen.
|
||||
*
|
||||
* @see Automattic\WooCommerce\Internal\Orders\OrderAttributionController
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.4.0
|
||||
* @version 8.6.0-dev
|
||||
*/
|
||||
|
||||
declare( strict_types=1 );
|
||||
@@ -47,29 +47,36 @@ defined( 'ABSPATH' ) || exit;
|
||||
</div>
|
||||
|
||||
<div class="woocommerce-order-attribution-details-container closed">
|
||||
<?php if ( array_key_exists( 'type', $meta ) ) : ?>
|
||||
<?php if ( array_key_exists( 'source_type', $meta ) ) : ?>
|
||||
<h4><?php esc_html_e( 'Source type', 'woocommerce' ); ?></h4>
|
||||
<span class="order-attribution-source_type">
|
||||
<?php echo esc_html( $meta['type'] ); ?>
|
||||
<?php echo esc_html( $meta['source_type'] ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( array_key_exists( 'utm_campaign', $meta ) ) : ?>
|
||||
<h4><?php esc_html_e( 'UTM campaign', 'woocommerce' ); ?></h4>
|
||||
<h4>
|
||||
<?php esc_html_e( 'Campaign', 'woocommerce' ); ?>
|
||||
</h4>
|
||||
<span class="order-attribution-utm-campaign">
|
||||
<?php echo esc_html( $meta['utm_campaign'] ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( array_key_exists( 'utm_source', $meta ) ) : ?>
|
||||
<h4><?php esc_html_e( 'UTM source', 'woocommerce' ); ?></h4>
|
||||
<h4>
|
||||
<?php esc_html_e( 'Source', 'woocommerce' ); ?>
|
||||
|
||||
</h4>
|
||||
<span class="order-attribution-utm-source">
|
||||
<?php echo esc_html( $meta['utm_source'] ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( array_key_exists( 'utm_medium', $meta ) ) : ?>
|
||||
<h4><?php esc_html_e( 'UTM medium', 'woocommerce' ); ?></h4>
|
||||
<h4>
|
||||
<?php esc_html_e( 'Medium', 'woocommerce' ); ?>
|
||||
</h4>
|
||||
<span class="order-attribution-utm-medium">
|
||||
<?php echo esc_html( $meta['utm_medium'] ); ?>
|
||||
</span>
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* @see Automattic\WooCommerce\Internal\Admin\Orders\MetaBoxes\CustomerHistory
|
||||
* @package WooCommerce\Templates
|
||||
* @version 8.4.0
|
||||
* @version 8.7.0
|
||||
*/
|
||||
|
||||
declare( strict_types=1 );
|
||||
@@ -16,9 +16,9 @@ defined( 'ABSPATH' ) || exit;
|
||||
/**
|
||||
* Variables used in this file.
|
||||
*
|
||||
* @var int $order_count The number of paid orders placed by the current customer.
|
||||
* @var float $total_spent The total money spent by the current customer.
|
||||
* @var float $average_spent The average money spent by the current customer.
|
||||
* @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.
|
||||
*/
|
||||
?>
|
||||
|
||||
@@ -35,7 +35,7 @@ defined( 'ABSPATH' ) || exit;
|
||||
</h4>
|
||||
|
||||
<span class="order-attribution-total-orders">
|
||||
<?php echo esc_html( $order_count ); ?>
|
||||
<?php echo esc_html( $orders_count ); ?>
|
||||
</span>
|
||||
|
||||
<h4>
|
||||
@@ -49,11 +49,11 @@ defined( 'ABSPATH' ) || exit;
|
||||
?>
|
||||
</h4>
|
||||
<span class="order-attribution-total-spend">
|
||||
<?php echo wp_kses_post( wc_price( $total_spent ) ); ?>
|
||||
<?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( $average_spent ) ); ?>
|
||||
<?php echo wp_kses_post( wc_price( $avg_order_value ) ); ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -18,24 +18,36 @@
|
||||
<!-- /wp:woocommerce/order-confirmation-downloads-wrapper -->
|
||||
|
||||
<!-- wp:columns {"align":"wide","className":"woocommerce-order-confirmation-address-wrapper"} -->
|
||||
<div class="wp-block-columns alignwide woocommerce-order-confirmation-address-wrapper"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:woocommerce/order-confirmation-shipping-wrapper {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide woocommerce-order-confirmation-address-wrapper">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:woocommerce/order-confirmation-shipping-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-shipping-heading"} /-->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-shipping-address {"lock":{"remove":true}} /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-shipping-wrapper --></div>
|
||||
<!-- /wp:woocommerce/order-confirmation-shipping-wrapper -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:woocommerce/order-confirmation-billing-wrapper {"align":"wide"} -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:woocommerce/order-confirmation-billing-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-billing-heading"} /-->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-billing-address {"lock":{"remove":true}} /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-billing-wrapper --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:woocommerce/order-confirmation-billing-wrapper -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-additional-information /--></main>
|
||||
<!-- wp:woocommerce/order-confirmation-additional-fields-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-additional-fields-heading"} /-->
|
||||
<!-- wp:woocommerce/order-confirmation-additional-fields /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-additional-fields-wrapper -->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-additional-information /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer"} /-->
|
||||
<!-- wp:template-part {"slug":"footer"} /-->
|
||||
@@ -2,9 +2,10 @@
|
||||
<!-- wp:woocommerce/page-content-wrapper {"page":"cart"} -->
|
||||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:woocommerce/store-notices /-->
|
||||
<!-- wp:post-title {"align":"wide", "level":1} /-->
|
||||
<!-- wp:post-content {"align":"wide"} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<!-- wp:woocommerce/page-content-wrapper {"page":"checkout"} -->
|
||||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:woocommerce/store-notices /-->
|
||||
<!-- wp:post-title {"align":"wide", "level":1} /-->
|
||||
<!-- wp:post-content {"align":"wide"} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
|
||||
<!-- wp:woocommerce/product-details {"align":"wide"} /-->
|
||||
<!-- wp:woocommerce/product-details {"align":"wide","className":"is-style-minimal"} /-->
|
||||
|
||||
<!-- wp:pattern {"slug":"woocommerce-blocks/related-products"} /-->
|
||||
</div>
|
||||
|
||||
@@ -18,24 +18,36 @@
|
||||
<!-- /wp:woocommerce/order-confirmation-downloads-wrapper -->
|
||||
|
||||
<!-- wp:columns {"align":"wide","className":"woocommerce-order-confirmation-address-wrapper"} -->
|
||||
<div class="wp-block-columns alignwide woocommerce-order-confirmation-address-wrapper"><!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:woocommerce/order-confirmation-shipping-wrapper {"align":"wide"} -->
|
||||
<div class="wp-block-columns alignwide woocommerce-order-confirmation-address-wrapper">
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:woocommerce/order-confirmation-shipping-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-shipping-heading"} /-->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-shipping-address {"lock":{"remove":true}} /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-shipping-wrapper --></div>
|
||||
<!-- /wp:woocommerce/order-confirmation-shipping-wrapper -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
|
||||
<!-- wp:column -->
|
||||
<div class="wp-block-column"><!-- wp:woocommerce/order-confirmation-billing-wrapper {"align":"wide"} -->
|
||||
<div class="wp-block-column">
|
||||
<!-- wp:woocommerce/order-confirmation-billing-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-billing-heading"} /-->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-billing-address {"lock":{"remove":true}} /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-billing-wrapper --></div>
|
||||
<!-- /wp:column --></div>
|
||||
<!-- /wp:woocommerce/order-confirmation-billing-wrapper -->
|
||||
</div>
|
||||
<!-- /wp:column -->
|
||||
</div>
|
||||
<!-- /wp:columns -->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-additional-information /--></main>
|
||||
<!-- wp:woocommerce/order-confirmation-additional-fields-wrapper {"align":"wide"} -->
|
||||
<!-- wp:pattern {"slug":"woocommerce/order-confirmation-additional-fields-heading"} /-->
|
||||
<!-- wp:woocommerce/order-confirmation-additional-fields /-->
|
||||
<!-- /wp:woocommerce/order-confirmation-additional-fields-wrapper -->
|
||||
|
||||
<!-- wp:woocommerce/order-confirmation-additional-information /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer"} /-->
|
||||
<!-- wp:template-part {"slug":"footer"} /-->
|
||||
@@ -2,9 +2,10 @@
|
||||
<!-- wp:woocommerce/page-content-wrapper {"page":"cart"} -->
|
||||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:woocommerce/store-notices /-->
|
||||
<!-- wp:post-title {"align":"wide", "level":1} /-->
|
||||
<!-- wp:post-content {"align":"wide"} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
<!-- wp:woocommerce/page-content-wrapper {"page":"checkout"} -->
|
||||
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
|
||||
<main class="wp-block-group">
|
||||
<!-- wp:woocommerce/store-notices /-->
|
||||
<!-- wp:post-title {"align":"wide", "level":1} /-->
|
||||
<!-- wp:post-content {"align":"wide"} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
<!-- /wp:woocommerce/page-content-wrapper -->
|
||||
|
||||
Reference in New Issue
Block a user