For magnetic dipoles like the sun, field strength decreases as the inverse cube of the distance. This means that the sun’s magnetic field is extremely weak, almost nonexistent, at earth’s distance. Whatever effect it has on earth is negligible.
As a spectroscopist, I'm well aware of the inverse-square law.....BUT "extremely weak" is NOT zero, and without studying the possibility we don't KNOW that it is "negligible". Lots of things have been "assumed to be negligible", and later found not to be.