FOX - WooCommerce Currency Switcher Professional

WPC Product Bundles for WooCommerce By WPClever

Plugin link: https://wordpress.org/plugins/woo-product-bundle/

  • into file functions.php of the current WordPress theme add next code
    add_filter('woosb_item_price_before_set', function ($_price, $cart_item) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            if ($WOOCS->is_multiple_allowed AND $_price) {
                $currrent = $WOOCS->current_currency;
                if ($currrent != $WOOCS->default_currency) {
                    $currencies = $WOOCS->get_currencies();
                    $rate = $currencies[$currrent]['rate'];
                    $_price = $_price / $rate;
                }
            }
        }
    
        return $_price;
    }, 10, 2);