From d3bebc45bfe9c4ac84079926344f4bb6dd41ae0f Mon Sep 17 00:00:00 2001 From: SerHack <27734319+serhack@users.noreply.github.com> Date: Sat, 17 Jul 2021 10:45:48 +0200 Subject: [PATCH] Update monero-woocommerce-gateway.php --- monero-woocommerce-gateway.php | 1 + 1 file changed, 1 insertion(+) diff --git a/monero-woocommerce-gateway.php b/monero-woocommerce-gateway.php index 7decdde..aa114f5 100644 --- a/monero-woocommerce-gateway.php +++ b/monero-woocommerce-gateway.php @@ -119,6 +119,7 @@ function monero_init() { // This filter will replace all prices with amount in Monero (live rates) add_filter('wc_price', 'monero_live_price_format', 10, 3); function monero_live_price_format($price_html, $price_float, $args) { + $price_float = wc_format_decimal($price_float); if(!isset($args['currency']) || !$args['currency']) { global $woocommerce; $currency = strtoupper(get_woocommerce_currency());