On those with the buggered lock switch, the door doesn't know whether it's shut or open,
I found a brilliant bodge years ago on one of the mk4 golf forums.
This uses a magnetic switch wired to the brown wire on the door light.
The hardest part is getting a switch that opens with a magnet (door closed, light off) and closes with a magnet (door open, light on).
The brown wire activates the light and the
INconvenience module, so lights, alarm etc all work.
Brilliant, still not done it yet. but should be much easier than battling the door locks.
Here it is,
https://forums.tdiclub.com/index.php?threads/magnetic-door-switch-mod.464513/
and stupid door switch says it all, eloquently.
Page 19 onwards.
https://forums.tdiclub.com/index.php?threads/stupid-door-switch-3-fix.77648/