Cart shipping subtotal incorrect with UPS Official and USD
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from karlbrooks on February 14, 2023, 13:43Hi I am using the free version to test before upgrading to the full plugin. I have an issue between UPS official and the Fox Currency Switcher.
At Checkout < The UPS quote and the subtotal in the checkout don't match up | GBP(base) to USD.
Screenshot 1. GBP UPS TOTAL and CART SUBTOTAL for shipping are the same.
Screenshot 2. USD UPS TOTAL is correct conversion and CART SUBTOTAL has a price increase. (not sure what this is or when it comes from)
Please help me to resolve this issue.
youll be able to replicate via the website www.krave.golf and using the switcher.
Id love to resolve this issue and upgrade but cant without a working copy.
Hi I am using the free version to test before upgrading to the full plugin. I have an issue between UPS official and the Fox Currency Switcher.
At Checkout < The UPS quote and the subtotal in the checkout don't match up | GBP(base) to USD.
Screenshot 1. GBP UPS TOTAL and CART SUBTOTAL for shipping are the same.
Screenshot 2. USD UPS TOTAL is correct conversion and CART SUBTOTAL has a price increase. (not sure what this is or when it comes from)
Please help me to resolve this issue.
youll be able to replicate via the website http://www.krave.golf and using the switcher.
Id love to resolve this issue and upgrade but cant without a working copy.


Quote from Pablo Borysenco on February 15, 2023, 12:19Hello
Please read this - https://currency-switcher.com/woocs-labs
Hello
Please read this - https://currency-switcher.com/woocs-labs
Quote from karlbrooks on February 16, 2023, 12:46So from reading the solutions section if found this code. I'm not a developer but do know how to add code to the funtions.php
I've added this code to the file but it has had no effect on problem.
add_filter('woocommerce_shipping_ups_check_store_currency', function ($alow, $currency, $xml, $_this) { return false; }, 99, 4); add_filter('woocommerce_shipping_ups_rate', function ($data, $currency, $xml, $_this) { if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $current = $WOOCS->current_currency; $currencies = $WOOCS->get_currencies(); $def_currency = $WOOCS->default_currency; if ($current != $currency && isset($currencies[$currency])) { $rate = $currencies[$currency]['rate']; $data['cost'] = $data['cost'] / $rate; $data['cost'] = $WOOCS->woocs_exchange_value(floatval($data['cost'])); } } } return $data; }, 99, 4);
So from reading the solutions section if found this code. I'm not a developer but do know how to add code to the funtions.php
I've added this code to the file but it has had no effect on problem.
add_filter('woocommerce_shipping_ups_check_store_currency', function ($alow, $currency, $xml, $_this) {
return false;
}, 99, 4);
add_filter('woocommerce_shipping_ups_rate', function ($data, $currency, $xml, $_this) {
if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$current = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
$def_currency = $WOOCS->default_currency;
if ($current != $currency && isset($currencies[$currency])) {
$rate = $currencies[$currency]['rate'];
$data['cost'] = $data['cost'] / $rate;
$data['cost'] = $WOOCS->woocs_exchange_value(floatval($data['cost']));
}
}
}
return $data;
}, 99, 4);Quote from Pablo Borysenco on February 16, 2023, 14:04In this case you can add ftp+wp-admin access to your test site - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png
And I'll add it to the adaptation queue
In this case you can add ftp+wp-admin access to your test site - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130637.png
And I'll add it to the adaptation queue
Quote from karlbrooks on February 16, 2023, 14:32I have added access info!
Thanks.
I have added access info!
Thanks.
Quote from Pablo Borysenco on February 17, 2023, 12:01Hello
oK! I will write you as soon as I get the result
Hello
oK! I will write you as soon as I get the result
Quote from karlbrooks on February 22, 2023, 12:12Hi, Any update on this please?
Hi, Any update on this please?
Quote from Pablo Borysenco on February 22, 2023, 13:49Hello
I'll write to you as soon as it's your turn
Hello
I'll write to you as soon as it's your turn
Quote from Pablo Borysenco on February 24, 2023, 19:34Hello
Please do a test
(I already added this code)
In file - wp-content\plugins\ups-eu-woocommerce\src\models\ups-eu-woo-model-currency.php - add code - https://share.pluginus.net/image/i20230224193211.png
return $amount;
in file - \wp-content\plugins\ups-eu-woocommerce\src\models\ups-eu-woo-model-ups-shipping-api.php - add code - https://share.pluginus.net/image/i20230224193327.png
if (class_exists('WOOCS') AND $result->custom->monetary_value) {
global $WOOCS;
$result->custom->monetary_value_fomart = wc_price($WOOCS->woocs_exchange_value($result->custom->monetary_value));
}
Hello
Please do a test
(I already added this code)
In file - wp-content\plugins\ups-eu-woocommerce\src\models\ups-eu-woo-model-currency.php - add code - https://share.pluginus.net/image/i20230224193211.png
return $amount;
in file - \wp-content\plugins\ups-eu-woocommerce\src\models\ups-eu-woo-model-ups-shipping-api.php - add code - https://share.pluginus.net/image/i20230224193327.png
if (class_exists('WOOCS') AND $result->custom->monetary_value) {
global $WOOCS;
$result->custom->monetary_value_fomart = wc_price($WOOCS->woocs_exchange_value($result->custom->monetary_value));
}
Quote from karlbrooks on February 27, 2023, 11:36Hi,
Yes, This looks like it has fixed the issue. Thanks
Hi,
Yes, This looks like it has fixed the issue. Thanks

Quote from Pablo Borysenco on February 27, 2023, 12:52Hello
Great! welcome;)
Hello
Great! welcome;)