SAN FRANCISCO, CA - JANUARY 04:  Amazon Prime boxes are seen in a bundle of recycled cardboard at Recology's Recylce Central on January 4, 2018 in San Francisco, California. Recycle centers are seeing a spike in cardboard recycling following the holidays after a record year for online retailers. The U.S. Postal Service estimates that they delivered ten percent more packages in 2017 with Amazon shipping over five billion items for Prime members.  (Photo by Justin Sullivan/Getty Images)
Justin Sullivan/Getty Images
SAN FRANCISCO, CA - JANUARY 04: Amazon Prime boxes are seen in a bundle of recycled cardboard at Recology's Recylce Central on January 4, 2018 in San Francisco, California. Recycle centers are seeing a spike in cardboard recycling following the holidays after a record year for online retailers. The U.S. Postal Service estimates that they delivered ten percent more packages in 2017 with Amazon shipping over five billion items for Prime members. (Photo by Justin Sullivan/Getty Images)
Now playing
01:00
Retailers in the age of Amazon: Adapt or die
Getty Images
Now playing
02:18
This airplane-shaped bag is selling for more than some actual planes
Now playing
00:54
See Nike's new 'hands-free' shoe
One of many large boxes of returned products that fill the warehouse. The returned products in this box will eventually be sorted and categorized.
John General/CNN
One of many large boxes of returned products that fill the warehouse. The returned products in this box will eventually be sorted and categorized.
Now playing
05:08
Here's where your 'free' online returns actually end up
Shutterstock
Now playing
04:42
Ever receive a package you didn't order? It could be a scam
Orangetheory Fitness
Now playing
02:13
This gym is actually opening studios during the pandemic
Now playing
02:24
How holiday spirit is surging despite the Covid-19 pandemic
NEW YORK, NEW YORK - NOVEMBER 19: A view of the window display as Macy's Herald Square unveils Give, Love, Believe 2020 Holiday Windows on November 19, 2020 in New York City. (Photo by Eugene Gologursky/Getty Images for Macy's)
Eugene Gologursky/Getty Images North America/Getty Images for Macy's
NEW YORK, NEW YORK - NOVEMBER 19: A view of the window display as Macy's Herald Square unveils Give, Love, Believe 2020 Holiday Windows on November 19, 2020 in New York City. (Photo by Eugene Gologursky/Getty Images for Macy's)
Now playing
00:56
Macy's unveils holiday window display with gratitude theme
CNN/Target/Design by John General
Now playing
02:36
It's official: Black Friday is irrelevant
Now playing
02:23
Party City CEO: Consumers still want to celebrate together
NEW YORK, UNITED STATES - 2020/07/08: People wearing face masks shopping inside a retail store in Manhattan as the city enters phase 3 of reopening amid the coronavirus pandemic
As New York City enters phase 3 of reopening retail stores for indoor shopping, restaurants have been postponed for indoor dinning. The U.S. Department of Health recorded a total of 3,219,999 infections, 135,822 death and 1,426,428 recovered since the beginning of the outbreak. (Photo by Braulio Jatar/SOPA Images/LightRocket via Getty Images)
Braulio Jatar/SOPA Images/LightRocket/Getty Images
NEW YORK, UNITED STATES - 2020/07/08: People wearing face masks shopping inside a retail store in Manhattan as the city enters phase 3 of reopening amid the coronavirus pandemic As New York City enters phase 3 of reopening retail stores for indoor shopping, restaurants have been postponed for indoor dinning. The U.S. Department of Health recorded a total of 3,219,999 infections, 135,822 death and 1,426,428 recovered since the beginning of the outbreak. (Photo by Braulio Jatar/SOPA Images/LightRocket via Getty Images)
Now playing
01:38
US retail sales improved in September
thehouseofdrew.com
Now playing
02:01
Justin Bieber's footwear collaboration overwhelms site
Walmart
Now playing
01:01
See what's new inside Walmart stores
3119 E Third Street Dollar General in Dayton, OH on March 12, 2020.
Maddie McGarvey for CNN
3119 E Third Street Dollar General in Dayton, OH on March 12, 2020.
Now playing
06:07
Dollar General's business is booming. It's also vulnerable to crime, police say
Now playing
03:01
How private equity is gutting retail
Now playing
01:55
All retail bankruptcies are not the same. Here's what you need to know
(CNN Business) —  

Kroger and Walgreens want to find new customers and stave off competition in a crowded market for retailers and pharmacies. So they’re doing it together.

The two companies this week said that Kroger (KR) will open mini “Kroger Express” stores inside 13 Walgreens (WBA) pharmacies. It’s a creative arrangement that blurs the lines between traditional grocers and drug store chains. It’s a test, and if it works, they plan to try the concept in other locations.

One of the stores has already opened, and the other dozen will be up and running by early next year. The stores, all near Kroger’s headquarters in Cincinnati, will sell national brands as well as Kroger’s private-label dairy, meat, produce and frozen foods. Customers will also be able to buy meal kits from Home Chef, which Kroger bought earlier this year.

The Express section will take up a little less than one-third of each Walgreens location. Walgreens employees will still stock and operate the Kroger aisles, and there won’t be separate cash registers for checkout.

The two companies were already working together on a smaller scale. In October, Kroger began offering online grocery pickup at the same 13 Walgreens locations. The financial terms of both that deal and the new one were not disclosed.

Analysts say the two chains believe the other can help fill weaknesses in their businesses while fending off new competition.

“Kroger brings the strength of food knowledge and credibility to the partnership, and Walgreens brings access to real estate,” said Tory Gundelach, a retail analyst at Kantar Consulting.

Amazon is one of the biggest threats that either company faces. It recently purchased PillPack, an online pharmacy service. And it bought Whole Foods last year, giving it a presence in grocery.

Kroger will open mini "Kroger Express" stores inside 13 Walgreens with meat, produce, and frozen foods.
Courtesy Kroger
Kroger will open mini "Kroger Express" stores inside 13 Walgreens with meat, produce, and frozen foods.

That kind of competition means that Walgreens needs to give customers reasons to visit, said Jason Goldberg, chief commerce strategy officer at Publicis Communications.

A fresh approach for Walgreens

Most of the company’s traffic today comes when people pick up their prescriptions. But that advantage will weaken as Amazon enters the pharmacy business and as more prescriptions are home delivered.

Walgreens, which is located mostly in urban areas, has struggled to convince shoppers to buy snacks, drinks and fresh food at the pharmacy. Customers can buy most of that stuff online or at convenience stores. The company’s consumable sales fell last year, according to filings.

Walgreens knows it needs a new approach, and so has settled on outside partnerships as the solution. It struck a deal with FedEx (FDX) for package pick-ups and drop-offs in stores, and recently partnered with Sprint (S) to open “Sprint Express” stations. Walgreens also tapped Birchbox, the online beauty retailer, to help expand its makeup aisles.

Selling quick-trip food is only getting harder. Target (TGT) is opening up 30 small stores a year to snag shoppers in major cities. Amazon (AMZN) and Walmart’s (WMT) Sam’s Club are piloting cashier-less stores.