I want to load a specific block in the transactional email only when the order is shipped. I want to load the block, buy using the following code:
{{block type='core/template' area='frontend' template='email/order/invoiceemailhead.phtml' order=$order}}
I already use that template to check the paymentmethod, but using;
<?php if($this->getOrder()->getPayment()->getMethodInstance()->getCode()=='cashondelivery'):?>
How can I also check if a order is shipped? What code do I need for this?