Well, to go into more detail, I have the jacket, which has a solidify modifier and a subdivide modifier, and then I have the “zipper” as I like to call it. The zipper only has a subdivide modifier, however I also tried using a shrinkwrap modifier with a vertex group assigned to the nearest surface point of the jacket. For both objects, I used Control + P to parent them to the armature. Here is the order of the modifiers for the jacket:
and here they are for the zipper:
The shrinkwrap modifier I have there, but turned off.
This results in the following outcome:
Now, the method I used for data transferring was to go into weight painting mode for both objects, then select a specific bone, and afterwards select the jacket followed by the zipper using shift, and finally going into the weights tab to transfer weights. I repeated this process for these 6 bones which resulted in the following:
I did however find an easier alternative method which was to simply duplicate the edges from the jacket (with weights already assigned) and remodel the zipper from there, but I hope I can understand weight painting more to grasp what I had done wrong beforehand.