Customise Invoice PDF & email

Discussion in 'Customization & add-ons' started by edusites, May 15, 2015.

  1. edusites

    edusites Member

    Joined:
    Aug 9, 2009
    Messages:
    54
    I need to add the following info to the invoice PDF and email that is generated by amember:

    1) Link to Ts & Cs
    2) Link to Supplier Information (see attached PDF)
    3) Link to Site Info

    4) Institution Name & Address
    5) Purchase Order Number

    I can add the links, but the new lines don't seem to get created correctly when I use
    $page->drawTextWithFixedWidth

    How do I include 'Additional User Fields' such as 4&5 in the email and PDF?

    many thanks
  2. edusites

    edusites Member

    Joined:
    Aug 9, 2009
    Messages:
    54
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Well this is hard to answer without seeing actual code and results.
    You can get additional fields from user's record:
    $invoice->getUser()->FIELDNAME; or $invoice->getUser()->data()->get('FIELDNAME') - depends on field type(SQL vs Common)

Share This Page