Invoice Customization

Discussion in 'Templates customization' started by guylewis, Apr 9, 2009.

  1. guylewis

    guylewis Member

    Joined:
    Oct 10, 2005
    Messages:
    56
    hi guys, I would like to add some of the detail that the client enters into the order form into the invoice for example:

    company name
    address

    and also alter the wording so that it says the invoice covers use for the following month starting from (date of invoice)

    can anyone tell me where to add this data and how to add it?

    Thanks

    Guy
  2. everbatim

    everbatim Member

    Joined:
    Dec 19, 2007
    Messages:
    65
    You'll need to modify these two files:

    /templates/mail_receipt.pdf.txt
    /templates/mail_receipt_contact.pdf.txt

    The first files contains the "Meat" of the PDF file, so that is where you will have to add your wording for your subscription terms.

    The second file contains the formatting and layout for the customer's address in the upper left corner. I assume your company info and address would go in this file.

    I believe the following code SHOULD insert your subscription period into the first file. You'll just need to place it in the correct location within the table.

    Code:
    {$p.begin_date|amember_date_format} {if $p.expire_date eq "2012-12-31"} - {else} {$p.expire_date|amember_date_format}{/if}
    
  3. guylewis

    guylewis Member

    Joined:
    Oct 10, 2005
    Messages:
    56
    Thank you Everbatim I appreciate that.

    Its not working for me, nor those files. So, for example, the contact details dont show up. I have an account with details of company and address but they are not being added.

    The code you kindly added above is not making an appearance either so I have put a support ticket in to see if I can get any more detailed help.

    Cheers

Share This Page