Ronaldo makes 31m a year. The shirts total up to about 50m in revenue, so even if there was no cost of buying them, staff all worked for free, there were no cost of delivery / storage etc it doesn't cover his salary.
If they made 5m profit off of that they did well.
I've no doubt Ronaldo's agents factor the merch bump into salary and image rights demands anyway.