WOOCS - WooCommerce Currency Switcher

YITH WooCommerce Deposits and Down Payments

Plugin link: https://yithemes.com/themes/plugins/yith-woocommerce-deposits-and-down-payments/

In file functions.php of the current wordpress theme add next code:

add_filter('yith_wcdp_single_deposit_price', function($deposit_price, $deposit_value) {

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

    return $deposit_price;
}, 2, 99);