WOOCS - WooCommerce Currency Switcher Professional

One Click Upsell Funnel for WooCommerce By WP Swings

Plugin link: https://wordpress.org/plugins/woo-one-click-upsell-funnel/

  • in file wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php add next code:
    if (function_exists('mwb_upsell_change_product_price')) {
        $product = mwb_upsell_change_product_price($product);
    }
    

  • In file wp-content\plugins\woocommerce-one-click-upsell-funnel-pro\includes\class-woocommerce_one_click_upsell_funnel_pro-global_functions.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $currency = $WOOCS->current_currency;
        if ($currency != $WOOCS->default_currency) {
            $currencies = $WOOCS->get_currencies();
            $payable_price = $WOOCS->back_convert($payable_price, $currencies[$currency]['rate']);
            $sale_price = $WOOCS->back_convert($sale_price, $currencies[$currency]['rate']);
            $regular_price = $WOOCS->back_convert($regular_price, $currencies[$currency]['rate']);
        }
    }