Don't let the problem arise in the first place
Put yourself in the customer's shoes... or imagine it was your son/grandmother etc with teh complaint
Listen to teh customer, echo back what they say, empathise, find out what they expect, say what you will do, then do what you promise.
Put in place actions to prevent same problem recurring