Aw: Change invoice position of address
Ok, I understand that this makes my changes update-resistant. But what changes are necessary to the file? I'm not very good at interpreting PHP code. I guess that I have to change these lines somehow:
$y+=10;
$pdf->SetFont('freesans','',11);
$pdf->SetXY(20,$y);
$address_data = array(
$order->firma_name,
trim($order->f_name." ".$order->l_name." ".$order->m_name),
trim(trim($order->street." ".$order->street_nr)." ".$order->home." ".$order->apartment),
trim($order->zip." ".$order->city),
$order->country
);
$pdf_address = implode("\n", array_filter($address_data));
$dispatcher->trigger('onGeneratePdfOrderBeforePdfAddress', array(&$order, &$pdf, &$pdf_address));
$pdf->MultiCell(80,4.5, $pdf_address, 0,'L');
$pdf->SetFont('freesansi','',11);
$pdf->SetXY(110,$y);
$pdf->MultiCell(80,4.5,_JSHOP_ORDER_SHORT_NR." ".$order->order_number."\n"._JSHOP_ORDER_FROM." ".$order->order_date,0,'R');
if ($jshopConfig->date_invoice_in_invoice){
$y+=12;
$pdf->SetXY(110,$y);
$pdf->MultiCell(80,4.5,_JSHOP_INVOICE_DATE." ".strftime($jshopConfig->store_date_format, strtotime($order->invoice_date)), 0, 'R');
}
if ($jshopConfig->user_number_in_invoice && $order->user_id && $user->number){
$y+=11;
$pdf->SetXY(110,$y);
$pdf->MultiCell(80,4.5,_JSHOP_USER_NUMBER." ".$user->number, 0, 'R');
}
Последнее изменение: 06.01.2017 14:49