NEW YORK -- Whole Foods said Monday it will pay New York City $500,000 to settle allegations it overcharged customers for prepackaged foods.

The city's Department of Consumer Affairs said the settlement also requires Whole Foods Market Inc. to conduct quarterly audits to ensure products are accurately weighed and labeled.

The city had said in June that its investigation tested 80 different types of prepackaged food at Whole Foods and found mislabeled weights on every one. The overcharging included $4.85 for a package of chicken tenders and $14.84 for coconut shrimp, the city said.

The investigation generated national headlines, prompting Whole Foods co-CEOs John Mackey and Walter Robb to apologize in an online video. Still, Whole Foods said the bad publicity ended up pinching sales.

Get Breaking News Delivered to Your Inbox

Mackey had previously expressed bewilderment over why "Whole Foods was singled out for this attention," saying that he doesn't think the company's track record on the matter is any different from other supermarkets. The grocery chain had nevertheless said over the summer that it would take steps to prevent overcharging, including training for workers, and pledged to give away products if customers discovered they were mispriced.

Whole Foods has already put in place third-party audits to ensure pricing accuracy, spokesman Michael Silverman said in an emailed statement.

Whole Foods refused to consider the city's initial demand for $1.5 million, but it agreed to the $500,000 settlement to "put this issue behind us," Silverman said.

The Department of Consumer Affairs said the money will go into the city's budget.

In August, Whole Foods again faced criticism for a product it was selling in one of its stores.

A Whole Foods was selling a bottle of water with three stalks of raw asparagus inside for $5.99 and calling it "Asparagus Water."

When shopper Marielle Wakim, an associate editor at Los Angeles magazine, spotted the water sitting on shelves in a California Whole Foods supermarket, she had to stop to do a double take.

"Somewhere in L.A., Whole Foods executives are laughing at all of us," she wrote on Instagram, posting a photo of the so-called "Asparagus Water" product.

After thousands of people took to the Internet to discuss "Asparagus Water(gate)," Whole Foods addressed the outlandish item.

Marielle Wakim snapped a photo of water bottles filled with asparagus sitting on store shelves at a California Whole Foods grocery store. Marielle Wakim/Los Angeles Magazine

"We actually don't sell asparagus water in our stores," Whole Foods Market Senior Media Relations Specialist Liz Burkhart told CBS News at the time. "We looked into the item as soon as it was brought to our attention."

The water was "carried briefly" in just one store in Brentwood, California, but it has now been removed.

"It was meant to be water with the essence of vegetables and/or mushrooms (similar to bone broth), which is typically made over a long period of time soaking in water," Burkhart explained. "It was made incorrectly and has since been removed."