WOOCS - WooCommerce Currency Switcher


WooCommerce Extra Product Options (by themecomplete)

Plugin link: https://codecanyon.net/item/woocommerce-extra-product-options/7908619

In file wp-content\plugins\woocommerce-tm-extra-product-options\include\classes add next code:

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