I'm modifying the pdf receipt generation in amember to make it satisfactory to use as an income tax receipt. I have almost completed it as I need it. I've included my mail_receipt.pdf.txt code below which I've modified to make two copies of the receipt top and bottom on the page. 1. What's I'm not able to do in the mail_receipt.pdf.txt file is repeat the logo image and the contact info on the bottom copy of the receipt. 2. Am I able to insert an additional common field I created into the mail_receipt_contact.pdf.txt file? In my user registration I've created a new field (parent1_name) which I'd like to show on the receipt instead of the default. 3. Can that additional field also be added to the filename generated? 4. In the product management CP is it possible to add a check box (or some other solution) which designates whether a product qualifies to be included on the tax receipt? I'll welcome quotes to help me make this customization. Code: <b>#_TPL_THX_YOUR_INVOICE# {$payment.payment_id} #_TPL_THX_FROM# {$payment.tm_completed|amember_date_format}</b> <br /> <br /> #_TPL_THX_PRDTITLE#|#_TPL_THX_PRICE# <br /> <hr> {foreach from=$products item=p} <fill>{$p.title}|{$config.currency|default:"$"}{$p.price|string_format:"%.2f"}</fill> <br /> {/foreach} <hr> <b>#_TPL_THX_SUBTOTAL#</b>|{$config.currency|default:"$"}{$subtotal|string_format:"%.2f"} <br /> {if $payment.data.COUPON_DISCOUNT ne "" } <hr> <b>#_TPL_THX_DISCOUNT#</b>|{$config.currency|default:"$"}{$payment.data.COUPON_DISCOUNT|string_format:"%.2f"} <br /> {/if} {if $payment.tax_amount ne ""} <hr> <b>#_TPL_THX_TAX#</b>|{$config.currency|default:"$"}{$payment.tax_amount|string_format:"%.2f"} <br /> {/if} <hr> <hr> <b>#_TPL_THX_TOTAL#</b>|<b>{$config.currency|default:"$"}{$total|string_format:"%.2f"}</b> <br /> <br /> <br /> <br /> <b>COPY #1</b> <br /> <hr> <hr> <br /> <b>COPY #2</b> <br /> <br /> <br /> <br /> <b>#_TPL_THX_YOUR_INVOICE# {$payment.payment_id} #_TPL_THX_FROM# {$payment.tm_completed|amember_date_format}</b> <br /> <br /> #_TPL_THX_PRDTITLE#|#_TPL_THX_PRICE# <br /> <hr> {foreach from=$products item=p} <fill>{$p.title}|{$config.currency|default:"$"}{$p.price|string_format:"%.2f"}</fill> <br /> {/foreach} <hr> <b>#_TPL_THX_SUBTOTAL#</b>|{$config.currency|default:"$"}{$subtotal|string_format:"%.2f"} <br /> {if $payment.data.COUPON_DISCOUNT ne "" } <hr> <b>#_TPL_THX_DISCOUNT#</b>|{$config.currency|default:"$"}{$payment.data.COUPON_DISCOUNT|string_format:"%.2f"} <br /> {/if} {if $payment.tax_amount ne ""} <hr> <b>#_TPL_THX_TAX#</b>|{$config.currency|default:"$"}{$payment.tax_amount|string_format:"%.2f"} <br /> {/if} <hr> <hr> <b>#_TPL_THX_TOTAL#</b>|<b>{$config.currency|default:"$"}{$total|string_format:"%.2f"}</b>
i figure the only way to get this done is modify function parse_pdf_content ($content, $member_id) in common.inc.php where the pdf file is formed. How can I make the pdf file that is ouput contain 2 copies of the invoice? (i.e. top and bottom of 1 page, or perhaps 2 copies on 2 separate pages)