WOOCS - WooCommerce Currency Switcher

WooCommerce UPS Drop Shipping – Ignitewoo

Plugin link: https://ignitewoo.com/woocommerce-extensions-plugins-themes/woocommerce-ups-drop-shipping/

  • in file  \wp-content\plugins\woocommerce-ups-shipping\ups_class.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currency = $WOOCS->get_currency_by_country($this->origincountry);
        $currencies = $WOOCS->get_currencies();
        $rate = $currencies[$currency]['rate'];
        foreach ($rates as $key => $item) {
            $rates[$key] = $item / $rate;
        }
    }