Added part of a js function with adds custom orders to the ticket