I need help configuring my cart to send a slightly different email depending on order status.
I am using zencart to sell event tickets.
When a customer orders a ticket they are sent the order confirmation email which includes the "order number". This is set in: includes/languages/english/your_template/checkout_process.php. line 27

I have set up the cart so that when I update the order to delivered, it sends the order update email but instead of showing "order number", it shows "ticket reference number". This is set in:
admin/includes/languages/english/orders.php. line 76

My problem with this is that admin/includes/languages/english/orders.php deals with all update types and if someone pays by check or money order I want to update the order to processing, and for the email to show "order number" but when I do, it sends the update email which shows "ticket reference number" not "order number".

How can I change the "processing" update email to show "order number" and leave the "delivered" update email to show "ticket reference number"?