Magento vat number pdf invoice

can someone help me put the VAT / tax number on the invoice at Magento?

I tried this code but it did not work:

$taxvat = $order->getData('customer_taxvat');
$page->drawText('Tax/Vat: '.$taxvat, 35, 567);
+3
source share
1 answer

You can get this by doing; $order->getCustomerTaxvat()

If this value is empty, you can try this:

$customer = Mage::getModel('customer/customer')->load($order->getData('customer_id'));
$taxVat = $customer->getData('taxvat');
+1
source

All Articles