The ticket office is opposite the cathedral, on the right hand side (entry to the roof is on the left hand side). There is a roof-only ticket (€10 for the stairs, €14 for the lift). They have changed the ticketing system recently so that you now have to choose an entry time when you buy your ticket.