GLASSBORO — A 32-year-old Williamstown man allegedly struggled with a loss prevention officer at the ShopRite store in Glassboro on Sunday.

Andrew Eanes, of Glassboro Road, allegedly tried to shoplift several cans of Enfamil baby formula at about 8:45 p.m. Oct. 5 from the supermarket on William Dalton Drive, police said. When a loss prevention officer tried to stop him, Eanes allegedly struggled with him and was able to escape, said police.

At 9:55 a.m. Tuesday, police were alerted that a male had shoplifted baby formula and fled. Employees were able to give officers the man’s direction of flight and officers caught Eanes in the parking lot of a business on North Delsea Drive, said police. The formula stolen Tuesday was recovered, police said.

Both times, Eanes fled on a bicycle.

Eanes allegedly acknowledged he’d committed both incidents. He was charged with robbery and shoplifting and lodged in the Salem County Jail in default of $7,500 bail, police said.