I have a custom extension that displays item stock status in order confirmation and invoice emails. Now I want to remove the stock status only from the invoice email. The problem is that they both use the same default.phtml template and I don’t seem to be able to separate them into their own template files.
Is there any way to get the type of email being sent so I could then load another template for invoice emails?