A shoplifter has been sentenced to over two years in prison.