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);
You can get this by doing; $order->getCustomerTaxvat()
$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');