Hershey has struck a deal to buy 80% of Chinese confectioner Shanghai Golden Monkey Food Joint Stock Co.