Buying goods ex vat from europe

Wasn't this type of VAT evasion going on with vehicles being imported from UK...ie car for private use was purchased ex-vat (uk vat) by quoting an Irish vat number?

How was that loophole closed?