$pdf->SetFont('Arial', 'B', 15); $pdf->SetXY($margin, $ypos); $pdf->Cell(0, 10, strtoupper($sp_detail['name']), 0, 0, 'C'); $ypos += 10; $pdf->SetXY($margin, $ypos); $pdf->Cell(0, 10, 'Order Number', 0, 0, 'C'); /* $sc_link = str_replace( 'www', 'sellercenter', $sp_detail['website']) . '/order'; $pdf->drawBarcode( $barcode_type, 'S', $sc_link, $margin, $ypos, 180); */ $ypos += 20; $order_no = $order['order_id']; $pdf->drawBarcode($barcode_type, 'M', $order_no, $margin + 55, $ypos, 80); } else { $pdf->Image(FPDF_IMGPATH . 'big-cancel.png', $margin, 63, 180, 180); } } } $filename = 'DeliveryDoc-Invoice-' . date('YmdHi'); $pdf->Output($filename . '.pdf', 'D', $override_vars); tep_db_close();