WOOCS - WooCommerce Currency Switcher

WooCommerce Stripe Payment Gateway

Plugin link: https://wordpress.org/plugins/woocommerce-gateway-stripe/

  • In  file wp-content\plugins\woocommerce-gateway-stripe\includes\class-wc-gateway-stripe.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $order_currency = $WOOCS->current_currency;
        $WOOCS->set_currency($currency);
    }
    
    if (class_exists('WOOCS')) {
        $WOOCS->set_currency($order_currency);
    }
    

  •  to the same file add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $order_currency = $WOOCS->current_currency;
        $WOOCS->set_currency($currency);
    }
    
    if (class_exists('WOOCS')) {
        $WOOCS->set_currency($order_currency);
    }