Because of the European TAX rules we need/want to add some extra text to the order and invoice emails when there is intra-community trade . We want to check if the TAX amount is 0 and customer has a VAT ID if so add some extra text. We already have a extra phtml file we can use but we can’t get the TAX amount and VAT ID. How can we get the TAX amount and VAT ID?
In Magento 1 we had a working situation with an extra phtml file like;
<?php $tax_amount= $this->getOrder()->getData('tax_amount');
if($tax_amount == '0')
{
?>
__(‘Intradeliverynote’);?>