PLEASANTON (KPIX 5) — Safeway has been ordered to pay almost $42 million to customers nationwide.

A federal judge in San Francisco said the grocer charged customers 10 percent more to buy groceries online.

READ MORE: SF Restaurant Apologizes for Denying Service to Armed, On-Duty Police Officers

Customers were not aware of that.

READ MORE: International Travelers Brace For New COVID Testing Requirement

It happened between 2006 and 2011.

Customers who were charged extra for shopping online are eligible for refunds.

MORE NEWS: Northbound San Tomas Expressway in Santa Clara Closed by 'Major Injury' Accident

The Pleasanton-based company says they alerted shoppers of the price increase and are fighting the decision.