Cara Menambahkan Detail Pembayaran di Invoice pdf Whmcs


Status
Not open for further replies.

Axiadata

Poster 2.0
Verified Provider
Mau berbagi tutorial sedikit ni barang kali bermanfaat buat yang lain :16:

Tutorial nya tentang Cara Menambahkan Detail Pembayaran di Invoice pdf Whmcs

Langkah awal nya silahkan masuk ke halaman General Setting dan liat bagian template apa yang digunakan, setelah mengetahui template yang anda gunakan silahkan masuk ke FTP atau cpanel anda dan berikut langkah-langkah nya:

1. Cari File invoicepdf.tpl pada bagian template yang anda gunakan

2. Jangan Lupa copy terlebih dahulu file asli ke folder lokal/folder lain di File manager sebagai backup bila salah melakukan editing file.

3. Kemudian tambahkan script dibawah ini pada bagian dalam file invoicepdf.tpl sesuai keiginan anda dan di pastikan sebelum tanda closing ?> tag script.

$pdf->SetFont('freesans','B',12);
$pdf->Cell(180,7,"Payment To",0,1,'C');
$pdf->SetFont('freesans','B',9);
$pdf->Cell(60,7,"Bank Transfer",0,0,'L');
$pdf->Ln();
$pdf->SetFont('freesans','',9);
$ypos = $pdf->GetY();
$pdf->SetXY(20,$ypos);
$pdf->MultiCell(60,4,"Bank BCA\nAccount Name: CV Axiadata\nAccount No: 1234-56789\n");
$pdf->SetXY(80,$ypos);
$pdf->MultiCell(60,4,"Bank Mandiri\nAccount Name: CV Axiadata\nAccount No: 1234-56789\n");
$pdf->SetXY(140,$ypos);
$pdf->MultiCell(60,4,"Please phone us with your\ncard details to pay with \nVisa or Mastercard\n");

4. Kemudian klik Save dan silahkan cek file Invoice Pdf Whmcs anda

Sembernya blog sendiri

Semoga bisa bermanfaat :36:
 

dhyhost

Web Hosting Service
The Warrior
Verified Provider
terima kasih infonya :)
mau langsung di coba
 

internetglobal

Poster 1.0
Ijin nambahin dari Tuan Axiadata kali aja temen2 butuh list Bank lebih banyak lagi
Monggo
PHP:
$pdf->SetFont('freesans','B',12);
$pdf->Cell(180,7,"Bayar Ke",0,1,'C');
$pdf->SetFont('freesans','B',9);
$pdf->Cell(60,7,"Bank Transfer",0,0,'L');
$pdf->Ln();
$pdf->SetFont('freesans','',9);
$ypos = $pdf->GetY();
$pdf->SetXY(20,$ypos);
$pdf->MultiCell(60,4,"Bank BCA\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(80,$ypos);
$pdf->MultiCell(60,4,"Bank Mandiri\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(140,$ypos);
$pdf->MultiCell(60,4,"Bank BRI\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetFont('freesans','B',12);
$pdf->Cell(180,7,"",0,1,'C');
$pdf->SetFont('freesans','B',9);
$pdf->Cell(60,7,"",0,0,'L');
$pdf->Ln();
$pdf->SetFont('freesans','',9);
$ypos = $pdf->GetY();
$pdf->SetXY(20,$ypos);
$pdf->MultiCell(60,4,"Bank CIMB Niaga\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(80,$ypos);
$pdf->MultiCell(60,4,"Bank BNI46\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(140,$ypos);
$pdf->MultiCell(60,4,"Paypal\nPaypalAccount: [email protected]\nNama Account: Nama Holder\n");

Kalo ada keliru tolong di benerin... :)
 

Axiadata

Poster 2.0
Verified Provider
Ijin nambahin dari Tuan Axiadata kali aja temen2 butuh list Bank lebih banyak lagi
Monggo
PHP:
$pdf->SetFont('freesans','B',12);
$pdf->Cell(180,7,"Bayar Ke",0,1,'C');
$pdf->SetFont('freesans','B',9);
$pdf->Cell(60,7,"Bank Transfer",0,0,'L');
$pdf->Ln();
$pdf->SetFont('freesans','',9);
$ypos = $pdf->GetY();
$pdf->SetXY(20,$ypos);
$pdf->MultiCell(60,4,"Bank BCA\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(80,$ypos);
$pdf->MultiCell(60,4,"Bank Mandiri\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(140,$ypos);
$pdf->MultiCell(60,4,"Bank BRI\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetFont('freesans','B',12);
$pdf->Cell(180,7,"",0,1,'C');
$pdf->SetFont('freesans','B',9);
$pdf->Cell(60,7,"",0,0,'L');
$pdf->Ln();
$pdf->SetFont('freesans','',9);
$ypos = $pdf->GetY();
$pdf->SetXY(20,$ypos);
$pdf->MultiCell(60,4,"Bank CIMB Niaga\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(80,$ypos);
$pdf->MultiCell(60,4,"Bank BNI46\nAtas Nama: Nama Holder\nNo.Rekening: 123456\nCabang: KCP. \n");
$pdf->SetXY(140,$ypos);
$pdf->MultiCell(60,4,"Paypal\nPaypalAccount: [email protected]\nNama Account: Nama Holder\n");

Kalo ada keliru tolong di benerin... :)

manteb om. hehe
 

internetglobal

Poster 1.0
Review dari saya :D

6GjnssB.png
 

dhyhost

Web Hosting Service
The Warrior
Verified Provider
saya pakai themes default,
lebih tepatnya kode yang di kasih om Axiadata di letakkan di atas kode # Generation Date
 

IDreg.Net

Expert 2.0
Nambahin buat yg di lingkar orange di gambar dalam invoice PDF
Untitled.png
PHP:
# Invoice Number
$pdf->Ln(5);
$pdf->SetFont('freesans','',9);
$tblhtml = '<table width="100%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0">
    <tr height="30" bgcolor="#efefef" style="font-weight:bold;text-align:center;">
        <td width="15%">'.$_LANG['invoicenumber'].'</td>
        <td width="25%">'.$_LANG['invoicesdatecreated'].'</td>
        <td width="25%">'.$_LANG['invoicesdatedue'].'</td>
        <td width="35%">'.$_LANG['invoicestransgateway'].'</td>
    </tr>';
    $tblhtml .= '
    <tr bgcolor="#fff">
        <td align="center">'.$invoicenum.'</td>
        <td align="center">'.$datecreated.'</td>
        <td align="center">'.$duedate.'</td>
        <td align="center">'.$gateway.'</td>
    </tr>
</table>';
$pdf->writeHTML($tblhtml, true, false, false, false, '');

Tambahin tepat diatas # Invoice Items di invoicepdf.tpl

semoga berguna :D
 
Status
Not open for further replies.

Top