PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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.

 

 

Hello

Please  read  this - https://currency-switcher.com/woocs-labs

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);

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

I have added access info!

Thanks.

Hello

oK! I will write you as soon as I get the result

Hi, Any update on this please?

Hello

I'll write to you as soon as it's your turn

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));
}

Hi,

Yes, This looks like it has fixed the issue. Thanks

 

Hello

Great!  welcome;)