Asos is to pay more than GBP20m (US$26.7m) to two European retailers over an alleged trademark infringement on their names following a six-year battle with the online fashion retailer.