Age restriction on condoms?

Is there an age restriction on buying condoms in the uk? I didn't think there was however someone told me they took them to the self checkout and it went red and they were asked for ID to prove they were over 18? Is this true? Or can anyone buy them?