Countdown in Paihia is due to re-open next month after a lengthy closure.
The town's only supermarket was shut down abruptly last September following a dispute between Progressive Enterprises, which owns the Countdown chain, and Kerikeri businessman Ian Blakeman, who leased the land and owned the building.
Countdown's lease on the building expired on August 1 but the company refused to move out until a court order forced it to vacate the building immediately on September 10. Staff were going about their work when security guards arrived, ordered everyone out and erected a fence.
In the interim, Countdown opened a temporary store in the old Paihia fire station in the town centre.
It is understood the Te Tii (Waitangi) B3 Trust, which owns the land, bought the building last month following long talks with Mr Blakeman and has allowed Countdown to re-open.