I suggest a deeper and wider, more accommodating shoe. Padding or simple orthotics can decrease rubbing on the prominent parts of the toes.
To fuse a deformed joint in the lesser toes a cut is made over the top of the joint, which is then removed. The joint is held stable in its corrected position with a wire which sticks out from the end of the toe and is removed in clinic at 6 weeks.
Sometimes the deformity is caused by the big toe pushing the others over or other more major foot deformities. If this is the case then this deformity would need to be corrected at the same time as the toe fusion.
There is a small chance of the bones not fusing together and this is called "non-union". Smoking and diabetes increase this risk. If this happens you may need further operations to deal with the problem.