|
|
|
$sent_to_admin,
'show_image' => $email_improvements_enabled,
'image_size' => array( $image_size, $image_size ),
'plain_text' => $plain_text,
'sent_to_admin' => $sent_to_admin,
)
);
?>
get_order_item_totals();
$item_totals_count = count( $item_totals );
if ( $item_totals ) {
$i = 0;
foreach ( $item_totals as $total ) {
++$i;
$last_class = ( $i === $item_totals_count ) ? ' order-totals-last' : '';
if ( $email_improvements_enabled && 'shipping' === ( $total['type'] ?? '' ) && isset( $total['meta'] ) && $total['value'] === $total['meta'] ) {
/**
* Filters whether a zero cost shipping row shows 'Free!' in place of the repeated method name.
*
* Defaults to true only for Free Shipping. Other methods can cost nothing yet still use the
* name to tell the customer something, such as 'Shipping TBD'.
*
* @since 11.2.0
*
* @param bool $show_free_label Whether to replace the value with 'Free!'.
* @param WC_Order $order The order being emailed.
*/
if ( (bool) apply_filters( 'woocommerce_email_order_shipping_show_free_label', $order->has_shipping_method( 'free_shipping' ), $order ) ) {
$total['value'] = __( 'Free!', 'woocommerce' );
}
}
?>
|
|
|
get_customer_note() && ! $email_improvements_enabled ) {
?>
|
get_customer_note() ) ), array() ); ?> |
get_customer_note() && $email_improvements_enabled ) { ?>
get_customer_note() ) ), array( 'br' => array() ) ); ?>
|