If they have available tickets, they will sell on the day of - in port.
But, they typically sell out.
If you want to do the zipline, buy tickets now.
You will get the time YOU want so that you can plan the rest of your day.
I have not done the zipline, but family members have.
Apparently, it is pretty darn amazing.