The shop has been ordered to donate more than £8,000 to charity by a judge.