Mars bars sold in the UK and Ireland will contain Fairtrade-certified cocoa by this autumn.