WOOCS - WooCommerce Currency Switcher

SUMO Affiliates Pro – WordPress Affiliate Plugin

Plugin link: https://codecanyon.net/item/sumo-affiliates-pro-wordpress-affiliate-plugin/22795996

In file wp-content\plugins\affs\inc\woocommerce\class-fs-affiliates-wc-commission.php add next code:

if (class_exists('WOOCS')) {
    global $WOOCS;
    if ($WOOCS->is_multiple_allowed) {
        $currrent = $WOOCS->current_currency;
        if ($currrent != $WOOCS->default_currency) {
            $currencies = $WOOCS->get_currencies();
            $rate = $currencies[$currrent]['rate'];
            $RegularPrice = $RegularPrice / $rate;
        }
    }
}