PDF Invoice Customization

From AMember Pro Manual

Jump to: navigation, search

[edit] PDF invoices documentation

You can enable automatic PDF Invoice/Receipt generation on each payment. It can be done at aMember CP -> Setup -> E-Mail : E-Mail Payment Receipt to user. After payment, customer can always open invoice on Membership Information Page http://www.yoursite.com/amember/member.php

PDF invoice format can be customized by editing two files:

/amember/templates/mail_receipt.pdf.txt 
thee following Smarty variables are available there: {$total}, {$subtotal}, {$payment}, {$products}
/amember/templates/mail_receipt_contact.pdf.txt 
you can use {$u} - an array with user's info ;

You can use several HTML-alike tags in the PDF template:

<br /> 
line break;
<hr>  
horizontal rule;
<b></b> 
bold;
<i></i> 
italic;
<u></u> 
underline;

You can output table content, for example:

   <fill>column1|column2|column3</fill>
   <br />
   value1|value2|value3
   ...

Text inside tags <fill></fill> will be displayed with silver background (only for table content).

You can add your logo image to invoice. Just upload file amember/logo.jpg and it will be automatically inserted to the top-right corner of the PDF template.

Personal tools