Those are very cheap and cheerful
Easiest to cut off the lead from the defective adaptor, and the plug from the replacement, and wire the two together with solder and heatshrink sleeving, ensuring correct polarity.
You will be able to find a suitable PSU at most car boots or charity shops for much less than the postage would be if I were to send you one from my scrap box.
N.