0
When I add the field {payments2} to the pdf template, I cannot generate the pdf for the invoice any more as I get a white page. I have the paypal plugin installed.
Responses (4)
  • Accepted Answer

    Tuesday, June 24 2014, 10:59 AM - #Permalink
    0
    hello,

    what's the content of the "payments 2" textarea on the template? did you modify it?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 24 2014, 11:19 AM - #Permalink
    0
    I don't think I did any changes yet. This is the content:

    <tr><td>
    {duedate}
    </td>
    <td >
    {description}
    </td>
    <td >
    {payment_status}
    </td>
    <td align="right" style="text-align:right;">
    <a href="/{payment_link}" target="_parent" class="btn btn-info btn-mini"><i class="icon-arrow-right icon-white"></i> Pay now</a>
    </td>
    <td align="right" style="text-align:right;">
    {amount}
    </td>
    </tr>


    I have noticed that {payment_status} is not listed in the available tokens list on the right, so I also tried getting rid of it with no luck.

    Also invoices are not linked to any user.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 24 2014, 12:08 PM - #Permalink
    0
    what you mean invoices are not linked to any user? you can define to whom they're linked...
    the payments code looks ok. the place where you call this code is also correct? (inside a table)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 24 2014, 01:59 PM - #Permalink
    0
    Sorry I meant Contacts not invoices. The contact to whom this invoice is related is not linked to any user.

    Anyway this is the key:

    the place where you call this code is also correct? (inside a table)

    The code was inside divs. I have adapted my pending payment code to this and now it works like a charm

    Thank you very much!!
    The reply is currently minimized Show
Your Reply