Here are a couple of reasonable summaries of the UK law:
For transactions before 1st Oct 2015 the Sale of Goods act would apply:
For ones after, the Consumer Rights Act:
Note that both include words to the effect: "Your rights are against the retailer (the company that sold you the product) not the manufacturer, and so you must make any claim against the retailer."