Skip to content

Commit

Permalink
update: remove 2 addition with wc_get_price_decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Feb 13, 2025
1 parent ee18453 commit 6747186
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions templates/orders/commission-meta-box-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand All @@ -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(),
)
);
?>
Expand Down

0 comments on commit 6747186

Please sign in to comment.