Lidl will open a European centre in Barcelona to manage electronic commerce and customer relationships.