First you buy the shoe. Then, when your feet start hurting, you buy the insert. Orthotics run $200 to $600 and they sit underneath your foot, which does nothing about a shoe that is the wrong shape above it.
When that stops working you are referred on. Bunion correction is $3,500 to $12,000, six to eight weeks off your feet, and it can come back, because the shoe that caused it is still in your closet.
Three purchases. One cause. And the one thing that would have prevented all of it, a shoe cut to the shape of a foot, is the cheapest item on the list.