Very nice but it's not working in v6.3.2.
When the client has placed an order, he doesn't receive the PDF invoice email or the Order Confirmation email.
Once I removed the following line, everything worked fine:
//get the VAT from this customer
if($clientsdetails['email']=='') {
$m=$clientsdetails['id'];
} else {
$m=$clientsdetails['email'];
$myVATNumber=myVATNumber($m);
}
if ($myVATNumber) {
$pdf->SetFont('Arial','',;
$pdf->SetXY(150,68);
$pdf->Cell(58,6,"BTW/VAT nr.: ".$myVATNumber,0,1,'L','1');
}
Any ideas why??