WOOCS - WooCommerce Currency Switcher

WooTour – WooCommerce Travel Tour Booking

Plugin link: https://codecanyon.net/item/wootour-woocommerce-travel-tour-and-appointment-booking/19404740

In file \plugins\woo-tour\inc\functions.php add next code:

if (class_exists('WOOCS')) {
    global $WOOCS;
    if ($WOOCS->is_multiple_allowed) {
        $price = $WOOCS->woocs_exchange_value(floatval($price));
    }
}

In file plugins\woo-tour\inc\class-woo-booking.php add next code:

}else if (class_exists('WOOCS')){
global $WOOCS;
$currency = $WOOCS->current_currency;
if ($WOOCS->is_multiple_allowed) {
    $currencies = $WOOCS->get_currencies();
    $def_curr = $WOOCS->default_currency;
    if ($cart_object->cart_contents[$key]['_crc_when_book']!=$def_curr) {
        $conversion_rate = $currencies[$cart_object->cart_contents[$key]['_crc_when_book']]['rate'];
        $pr_b = $pr_b / $conversion_rate;
        $cart_object->cart_contents[$key]['_crc_when_book'] = $def_curr;
    }
}
};

And to the same file:

}else if(class_exists('WOOCS')){
global $WOOCS;
$currency = $WOOCS->current_currency;
$cart_object->cart_contents[$key]['_crc_when_book'] = $currency;
}