+ Reply to Thread
Results 1 to 8 of 8

Thread: Invoices in PDF

  1. #1

    Invoices in PDF

    Hi there...

    How can we edit the fields that show at invoices in pdf?
    I want to delete some of the standart fields and change logo.
    At logo appears the watermark of photos.I want to add logo of website.
    Also how can we change the title of payment-00000154.pdf ?
    Attached Images Attached Images

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,754
    Hello,

    You need to make changes in plugins > invoices > rlInvoices.class.php > public function buildPDF

    and in payment_invoice.tpl
    Last edited by Rudi; October 19, 2020 at 09:30 AM.

  3. #3
    I change logo of invoices but how can i delete a field of buyer at invoice?
    eg. i want to delete about_us field

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,754
    Can you show on the screenshot what field you need to hide?

  5. #5
    So i want to hide about me and website...i have marked them....
    Also is it easy to add a field?invoice.png

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,754
    The fields list depends on the account registration form: Account Types > your account type > Build > Build Registration Form

    to hide particular fields, in payment_invoice.tpl > {if $type == 'payment'}

    replace:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.
    Last edited by Rudi; November 19, 2020 at 12:46 PM. Reason: corrected

  7. #7
    I add
    {if field.Key == 'website' || field.Key == 'page_to_zanta' || field.Key == 'about_me'}{continue}{/if}
    and i take to invoice payment 3 times the same error...

    Smarty error: [in /var/www/vhosts/zanta.gr/httpdocs/plugins/invoices/payment_invoice.tpl line
    31]: syntax error: unidentified token '.Key' (Smarty_Compiler.class.php, line 1429)
    line# 1095
    file: /var/www/vhosts/zanta.gr/httpdocs/libs/smarty/Smarty.class.php
    PHP version: 7.2.34

  8. #8
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    1,754
    Sorry, I've corrected my code

+ Reply to Thread