Tickets implemented in checkout template and fixing controllers and clear functions