Just a word of advise. I replaced the 7 pin cord on one of my trailers with one that was molded together. After making the change, along with adding a connection box for easier repairs in the future, the lights
wouldn't work.
Thought I had screwed something up and looked for hours for the problem, knowing it couldn't be the cord/plug assembly as it was factory fresh.
I finally put my multimeter to the plug and wire ends and discovered the the cord was wired totally wrong, with only the ground wire being correct.
So my suggestion would be that if you change the entire plug/cord assembly, check the continuity between the wires and their correct pins as indicated in a wiring diagram.
Oh, I went ahead and used the cord/plug I had, made a note on what wires went to the what prongs and put the note in the connection box for me for later reference.