A 24-year-old on a suspended sentence entered a discount store and filled up his pockets with items before leaving, a court has heard.