FOX - Currency Switcher Professional for WooCommerce

MStore API By InspireUI

Plugin link: https://wordpress.org/plugins/mstore-api/

  • In file wp-content\plugins\mstore-api\mstore-api.php change to next code:
    $new_price = $cart_item['data']->get_price();
    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'];
                $new_price = $new_price / $rate;
            }
        }
    }
    $new_price = $new_price + $add_price;
    

    From:

    To: