fix gift message on invoice pdf
This commit is contained in:
parent
a48649bacc
commit
390c7d795f
@ -918,7 +918,12 @@ class PDFCore extends PDF_PageGroupCore
|
||||
if(!empty(self::$order->gift_message)) {
|
||||
$pdf->Ln(15);
|
||||
$pdf->SetFont(self::fontname(), 'B', 10);
|
||||
$pdf->Cell(190, 0, Tools::iconv('utf-8', self::encoding(), self::$order->gift_message) , 0, 0, 'C');
|
||||
$message = wordwrap(trim(self::$order->gift_message), 70, "\n", false);
|
||||
$messages = explode("\n",$message);
|
||||
foreach ($messages as $key => $mess) {
|
||||
$pdf->Cell(190, 0, Tools::iconv('utf-8', self::encoding(), $mess) , 0, 0, 'C');
|
||||
$pdf->Ln(5);
|
||||
}
|
||||
}
|
||||
if($multi) {
|
||||
$pdf->Ln(15);
|
||||
|
Loading…
Reference in New Issue
Block a user