Exemplo n.º 1
0
 $boxpos1x = $margin + 1;
 $boxpos2x = 80;
 $boxpos_y = 36;
 $address_height_used = $order['delivery_company'] != '' ? $address_height2 : $address_height;
 $pdf->setFont('Arial', '', '10');
 $pdf->SetDrawColor($gray, $gray, $gray);
 $pdf->Rect($boxpos1x, $boxpos_y, $address_width, $address_height_used);
 if ($print_address_note) {
     $pdf->Rect($boxpos2x, $boxpos_y, $address_width, $address_height_used);
 }
 $box1x = $boxpos1x + 2;
 $box2x = $boxpos2x + 2;
 $box_y = $boxpos_y + 4;
 $ypos = $box_y;
 $pdf->SetXY($box1x, $ypos);
 $pdf->SetTextColor($gray, $gray, $gray);
 $pdf->Cell($address_width, 4, 'Empfänger:');
 $ypos += 6;
 if ($order['delivery_company'] != '') {
     $pdf->SetXY($box1x, $ypos);
     $pdf->setFont('Arial', 'B', '10');
     $pdf->SetTextColor(0, 0, 0);
     $pdf->Cell($address_width, 4, $order['delivery_company']);
     $ypos += 4;
 }
 $pdf->SetXY($box1x, $ypos);
 $pdf->setFont('Arial', 'B', '10');
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Cell($address_width, 4, $order['delivery_name']);
 $ypos += 4;
 $shipping_address = $order['delivery_street_address'];
Exemplo n.º 2
0
 $pdf->Rect($boxpos1x, $boxpos_y, $address_width, $address_height);
 $box1x = $boxpos1x + 2;
 $box2x = $boxpos2x + 2;
 $box_y = $boxpos_y + 2;
 $shipping_address = $order['customer_shipping_title'];
 $shipping_address .= ' ' . $order['customer_shipping_firstname'];
 $shipping_address .= ' ' . $order['customer_shipping_lastname'];
 $shipping_address .= "\n" . $order['customer_shipping_address'];
 if ($order['customer_shipping_address2'] != '') {
     $shipping_address .= "\n" . $order['customer_shipping_address2'];
 }
 $shipping_address .= "\n" . $order['customer_shipping_postcode'];
 $shipping_address .= ' ' . $order['customer_shipping_city'];
 $ypos = $box_y;
 $pdf->SetXY($box1x, $ypos);
 $pdf->SetTextColor($gray, $gray, $gray);
 $pdf->Cell($address_width, 4, 'Empfänger:');
 $ypos += 7;
 $pdf->SetXY($box1x, $ypos);
 $pdf->setFont('Arial', '', '10');
 $pdf->SetTextColor(0, 0, 0);
 $pdf->MultiCell($address_width, 4, $shipping_address);
 //Billing Address
 $billing_address = $order['customer_billing_title'];
 $billing_address .= ' ' . $order['customer_billing_firstname'];
 $billing_address .= ' ' . $order['customer_billing_lastname'];
 $billing_address .= "\n" . $order['customer_billing_address'];
 if ($order['customer_billing_address2'] != '') {
     $billing_address .= "\n" . $order['customer_billing_address2'];
     $ystart_add = 4;
 }