Andrew Mark Connor was caught by police half an hour after leaving the scene of the crime.
The 27-year-old, from Co Durham, admitted burglary and was given a community order.
He was also ordered to pay £100 to the shop he burgled.
Police told the Daily Mirror: "Some offences of burglary are more challenging than others.
"In this case the offender really put his foot in it."
For exclusive competitions and amazing prizes visit Reveal's Facebook page NOW!