I will go way out of my way to get it fixed without a shipping. My most recent purchase had some screws that held it together sheared off on delivery. The manufacturer wanted the gun back, and I said no, send me a freaking set of screws for 25cent stamp. I put them in and its fine. A few years back a new 1911 had its extractor blowout after like 2 range trips, same thing, they wanted it back, I said no, send the darn replacement and with google's help I got the new one in myself.
All you are doing when you ship a gun is making an anti-gunner happy. They made the laws so that you have to overnight it, and you probably better insure it cause they stamp it firearm and lightfingered employees exist. What I saved on the 2 above would probably buy a third gun! My way, the gun company does not pay, I don't pay, no one gets stuck with a totally bogus huge shipping bill -- which I feel has been done intentionally as another attack on guns to make owners and makers (more them than buyers usually) suffer.
Now, there are some malfunctions you can't fix, clearly. In that case, everyone loses, but keep those to the bare minimum. Most gun problems I have experienced in my life can be fixed with a part and a few min swearing at it when putting the new one in.
LGS shipping works too, but its still a chunk of change if the part can be sent in an envelope for under a buck.
Willful ignorance works too, though its risky. I admit to at least once sending back a stripped gun as misc. parts via slow, cheap delivery. But they check stuff more carefully now. My justification on that one was that even if some thug stole it, they could not make it work, it was too messed up.