From 6747186bb10131c38f0f4b69ad1be10f8f8f50a4 Mon Sep 17 00:00:00 2001 From: Osman Goni Sufy <47870515+osmansufy@users.noreply.github.com> Date: Thu, 13 Feb 2025 10:18:57 +0600 Subject: [PATCH] update: remove 2 addition with wc_get_price_decimals --- templates/orders/commission-meta-box-html.php | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/orders/commission-meta-box-html.php b/templates/orders/commission-meta-box-html.php index b495a2cba8..c859493849 100644 --- a/templates/orders/commission-meta-box-html.php +++ b/templates/orders/commission-meta-box-html.php @@ -172,7 +172,7 @@ echo wc_price( $original_commission, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -186,7 +186,7 @@ echo wc_price( $commission_refunded, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -212,7 +212,7 @@ echo wc_price( $order_total, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -226,7 +226,7 @@ echo wc_price( $net_amount, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -241,7 +241,7 @@ echo wc_price( $shipping_fee, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -253,7 +253,7 @@ echo wc_price( $shipping_fee_refunded, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -273,7 +273,7 @@ echo wc_price( $product_tax_fee, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -285,7 +285,7 @@ echo wc_price( $product_tax_fee_refunded, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -305,7 +305,7 @@ echo wc_price( $shipping_tax_fee, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -317,7 +317,7 @@ echo wc_price( $shipping_tax_fee_refunded, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?> @@ -344,7 +344,7 @@ echo wc_price( $total_commission, array( 'currency' => $order->get_currency(), - 'decimals' => wc_get_price_decimals() + 2, + 'decimals' => wc_get_price_decimals(), ) ); ?>