Two Pontefract charities have received a five-figure donation thanks to a Coca-Cola campaign featuring a local shop owner.