+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

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
    3,137
    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
    3,137
    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
    3,137
    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
    3,137
    Sorry, I've corrected my code

  9. #9
    Senior Member
    Join Date
    Nov 2021
    Posts
    162
    Hello Rudi!

    Please tell me how to add the name of the package to the basis of the payment?
    I tried using {$item_info.Service} outputs the package parameter, but not the name itself((

  10. #10
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,137
    Hello,

    Can you show on a screenshot what you need to add or hide?

+ Reply to Thread