Cara Menambahkan Detail Pembayaran di Invoice pdf Whmcs

Discussion in 'Software Hosting dan Control Panel' started by Axiadata, 25 Feb 2014.

Thread Status:
Not open for further replies.
  1. Axiadata

    Axiadata Poster 2.0

    Messages:
    162
    Likes Received:
    25
    Trophy Points:
    28
    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.

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

    Sembernya blog sendiri

    Semoga bisa bermanfaat :36:
     
  2. internetglobal

    internetglobal Poster 1.0

    Messages:
    69
    Likes Received:
    16
    Trophy Points:
    8
    Thanks nanti saya coba :)
     
  3. dhyhost

    dhyhost Hosting Guru Web Hosting

    Messages:
    3,948
    Likes Received:
    615
    Trophy Points:
    113
    terima kasih infonya :)
    mau langsung di coba
     
  4. internetglobal

    internetglobal Poster 1.0

    Messages:
    69
    Likes Received:
    16
    Trophy Points:
    8
    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: domain@domain.com\nNama Account: Nama Holder\n");
    Kalo ada keliru tolong di benerin... :)
     
    Effendi and sigmabisnis like this.
  5. Axiadata

    Axiadata Poster 2.0

    Messages:
    162
    Likes Received:
    25
    Trophy Points:
    28
    manteb om. hehe
     
  6. Axiadata

    Axiadata Poster 2.0

    Messages:
    162
    Likes Received:
    25
    Trophy Points:
    28
    ditunggu review nya mas :36:
     
  7. internetglobal

    internetglobal Poster 1.0

    Messages:
    69
    Likes Received:
    16
    Trophy Points:
    8
    Review dari saya :D

    [​IMG]
     
  8. dhyhost

    dhyhost Hosting Guru Web Hosting

    Messages:
    3,948
    Likes Received:
    615
    Trophy Points:
    113
    saya pakai themes default,
    lebih tepatnya kode yang di kasih om Axiadata di letakkan di atas kode # Generation Date
     
  9. handris

    handris Apprentice 1.0

    Messages:
    315
    Likes Received:
    48
    Trophy Points:
    28
    Very like this muach :-* and thank you buat mbak @Axiadata akan saya coba
     
  10. IDreg.Net

    IDreg.Net Expert 2.0 Web Hosting (Company)

    Messages:
    818
    Likes Received:
    226
    Trophy Points:
    43
    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($tblhtmltruefalsefalsefalse'');
    Tambahin tepat diatas # Invoice Items di invoicepdf.tpl

    semoga berguna :D
     
    Effendi and dhyhost like this.
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...