Slovenian retailer Mercator is to buy a chain of 77 stores from Montenegrin retailer Pantomarket.