The next version of WooTickets – which should be available shortly – will do this by default.
If you can’t wait until then please take a look at the code posted earlier in this thread – bearing in mind you may have to adapt it slightly to meet your needs.