FOX - Currency Switcher 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: MStore API By InspireUI To: MStore API By InspireUI
This edit is inside another plugin's file, so a plugin update will undo it. Write the change down, and re-apply it after every update of that plugin — or ask its authors to include the fix on their side, which is the only version that survives. If the change is inside FOX itself, tell us: a fix that has to be re-applied by hand is a bug on our side, not a solution.