WOOCS - WooCommerce Currency Switcher

Ultimate Affiliate Pro WordPress Plugin

Plugin link: https://codecanyon.net/item/ultimate-affiliate-pro-wordpress-plugin/16527729

In file \wp-content\plugins\indeed-affiliate-pro\public\services\Uap_Woo.class.php add next code:

//woocs
$curr = $order->get_order_currency();
if (class_exists('WOOCS')) {
    global $WOOCS;
    if ($curr != $WOOCS->default_currency) {
        $currencies = $WOOCS->get_currencies();
        $sum = $WOOCS->back_convert($sum, $currencies[$curr]['rate']);
    }
}


Note: This will only work with new orders