Skip to content

Commit fe86bce

Browse files
committed
Fixed how converted price is calculated
1 parent 058072e commit fe86bce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebanx-currency-converter/includes/class-ebanx-currency-converter-ajax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function get_exchange_rate()
1414
$ebanx = new WC_EBANX_Gateway();
1515
$data = [
1616
'status' => 'SUCCESS',
17-
'exchange_rate' => $ebanx->get_currency_rate($_GET['currency']),
17+
'exchange_rate' => round(floatval($ebanx->get_local_currency_rate_for_site($_GET['currency'])), 2),
1818
'store_currency' => $ebanx->merchant_currency,
1919
'current_currency' => $_GET['currency'],
2020
];

0 commit comments

Comments
 (0)