Consumer court will decide whether the defect or mistake lies with the manufacturer, or his/her processes, or employees , or with the distributors or retail sellers etc.
Then consumer court will impose a fine on the guilty party. The consumer could get compensation through monetary means or replacement of the product or provision of the service once again.
Perhaps there will be proposal for compensation by the guilty party and the court will agree and ask for its implementation. Or, the court will set a plan for the justified compensation and correction process.