The following filters are available to modify data used in the invoice PDF:

woocommerce_pdf_invoices_meta_data
woocommerce_pdf_invoices_order_data
woocommerce_pdf_invoices_order_items
woocommerce_order_item_permalink
woocommerce_order_item_name
woocommerce_order_item_quantity_html

40 thoughts on “PDF Invoice Filter Hooks

    • WeLaunch

      The Real Person!

      Author WeLaunch acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      What do you mean?

      • Alexandre Laurenti Done says:

        I mean, I would like to change some info in the table, like, the client wants the tax price after the final price and wants also that theres an empty line before the final price, I would like to know if and how can I change these informations. Thank you!

        • WeLaunch

          The Real Person!

          Author WeLaunch acts as a real person and verified as not a bot.
          Passed all tests against spam bots. Anti-Spam by CleanTalk.
          says:

          That is already a built in functionality by our plugin.

    • Daniel Barenkamp

      The Real Person!

      Author Daniel Barenkamp acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      No sorry but pdfs are saved in uploads foldery

    • Daniel Barenkamp

      The Real Person!

      Author Daniel Barenkamp acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Yes!

    • Daniel Barenkamp

      The Real Person!

      Author Daniel Barenkamp acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Not tested, but as you can use any data including custom data it should work.

  1. Gavin says:

    Ship to:
    {{shipping_company}}
    {{shipping_first_name}} {{shipping_last_name}}
    {{shipping_address_1}} {{shipping_address_2}}
    {{shipping_postcode}} {{shipping_city}}
    {{shipping_state}} {{shipping_country}}

    how can i add phone and email id here what would be the code

    • Daniel Barenkamp

      The Real Person!

      Author Daniel Barenkamp acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Use {{billing_phone}} for phone and {{billing_email}} for email. WooCommerce does not have these data for shipping specific.

      • aamirkhan says:

        i want to buy a plugin but before that i want to clear that can we show
        delivery date
        delivery time slot
        each item discounte price

        • Daniel

          The Real Person!

          Author Daniel acts as a real person and verified as not a bot.
          Passed all tests against spam bots. Anti-Spam by CleanTalk.
          says:

          Yea that is possible 🙂

  2. Peter says:

    Is there a code example on how this used? I have a custom field associated with an order being generated by a plugin that I want to include in the PDF.

  3. Sveta says:

    Hi, I have one site with the PDF invoice. I’d like to install it also on the second one, but I’d like to merge numbering of the invoices on both sites – site 1: invoice #1, site 2: invoice #2, site 1: invoice #3 and so on (depending on the sales on each of the sites). Is it possible to combine the two somehow?

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Well currently not, but we can customize / add this feature for you on Charge. Contact us at [email protected]

  4. Scott says:

    Is it possible to remove billing and shipping addresses, while retaining or adding billing first and last names, plus a custom field from order meta?

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Yes sure all invoice fields are fully customizable.

      • Scott says:

        Thanks. Your documentation shows settings for invoices only. I don’t need invoices. I do need packing slips. Possible to configure for packing slips only?

        • Daniel

          The Real Person!

          Author Daniel acts as a real person and verified as not a bot.
          Passed all tests against spam bots. Anti-Spam by CleanTalk.
          says:

          Yes, because they are 2 separate woocommerce Plugins.

          • Scott says:

            So if I buy the plugin “WooCommerce PDF Invoices & Packing Slips” from your site, I actually get two separate plugins? Then where is the documentation that shows how the packing slip plugin works?

  5. Daniel

    The Real Person!

    Author Daniel acts as a real person and verified as not a bot.
    Passed all tests against spam bots. Anti-Spam by CleanTalk.
    says:

    Yes correct. The setup is 90% the same.

  6. Dimitri says:

    What if I added a custom field to my WooCommerce Checkout (i.e. VAT Number), can I add that to the invoice?

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Yea our plugin supports ALL custom invoice fields.

  7. malamal.xyzltd says:

    Is there any option to add date in the invoice? The plugin I am using has no option to date the invoice, so what are the date options? if there date option then i will buy this plugin

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Yea you can use the order created date or put in any custom date if you want.

  8. Michele says:

    Hi, it seems that “{{customer_note}}” shortcode in pdf invoices settings-content doesn’t work. If I add in the order editor a note set as “note to customer”, in the pdf invoice it doesn’t appear (obviously even if I click on “Update Invoice” button).

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      The customer_note field is used only for the comments a customer can do during checkout.

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      A link on the thank you page is added automatically when you have enabled to show the invoice to customers.

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Sorry we do not know – maybe you ask automatewoo support. Our invoice PDFs are saved in wp-content/uploads/pdf-invocies folder.

  9. NINA says:

    Hello, I use Woo Commerce Market Place so I would like to know if it will be possible to generate Invoices only for “seleceted” vendors not all vendors ???

    • Daniel

      The Real Person!

      Author Daniel acts as a real person and verified as not a bot.
      Passed all tests against spam bots. Anti-Spam by CleanTalk.
      says:

      Well currently not, but we can customize / add this feature for you on Charge. Contact us at [email protected]

  10. Rosh says:

    Customers are using a coupon code to purchase items. How do I display the coupon codes on the packing slip under the invoice number.

  11. Aurimas

    The Real Person!

    Author Aurimas acts as a real person and verified as not a bot.
    Passed all tests against spam bots. Anti-Spam by CleanTalk.
    says:

    Is there a way to display note on invoice if buyer is from certain country? I mean if buyer is, let’s say from outside of European Union, i want to display additional note on the invoice about VAT calculation. There should be something like simple “If()” statement where I can filter checkout fields information or something similar.

Leave a Reply

Your email address will not be published. Required fields are marked *