Actually here, the pi bond shiftes and gets attached to the C of CCl4 and a Cl- escapes out making it a CCl3 and a H in the ortho posn to C=O of the phenol group due to resonance., then a H leaves from the ortho position to make it O- and CCl3 in the ortho posn only. After this its the same :)