Darzens reaction on allylic position Question



Attempt

I thought the products would be from simple darzens reaction. So   I replaced the OH by Cl. But the answer of mine seems way wrong. Do give some tips on what might be happening in the reacton.
Please help
This reaction is a special case of Darzen's halogenation. I think you are aware of mechanism of Darzen's reaction or else you can check it here. It occurs through a 6 membererd cyclic intermediate. I'll show you the first reaction you would be able to answer second one in succession.