Sale! Tested Updated Documented

PDF Invoicing for WooCommerce

From: $19.99 / year

Add PDF invoices to WooCommerce.

$19.99 Single site1 year of updates and support30-day money-back guaranteeBuy
$49.99 Unlimited sites1 year of updates and support30-day money-back guaranteeBuy
Clear

Description

PDF Invoicing for WooCommerce plugin lets you add various PDF documents (e.g. invoices, packing slips, credit notes etc.) to WooCommerce.

PDF Invoicing Options

Settings are located in “WooCommerce > Settings > PDF Invoicing”.

General Options

PDF Invoicing for WooCommerce - General Options

Total documents
Sets total number of documents you wish to add. After you save changes, new settings sections will be displayed.
Default: 1

Document Options

PDF Invoicing for WooCommerce - Document Options

Enable/Disable
Enables/disables the current document.
Default: yes
Title
Used in admin, and in “My account > Orders”.
Default: Invoice
Create
Possible values: Manually; On new order; On order status Pending payment; On order status Processing; On order status On hold; On order status Completed; On order status Cancelled; On order status Refunded; On order status Failed.
Default: Manually
Emails
Email attachments. Possible values: New order; Cancelled order; Failed order; Order on-hold; Processing order; Completed order; Refunded order; Customer invoice / Order details; Customer note; Reset password; New account.
Default: None
Number format
You can use shortcodes here. Please note that you can’t use doc_nr prop here.
Default:
INV-[prop name="doc_counter" format="%06d"]
My account
Allow customers to view documents in “My account > Orders”.
Default: no

Page Options

Page orientation
Possible values: Portrait; Landscape.
Default: Portrait
Page format
Sets current document’s page format.
Default: A4 (210 x 297 mm / 8.27 x 11.69 in)
Margin: Top
Default: 27
Margin: Left
Default: 15
Margin: Right
Default: 15

Header Options

Enable header
Enables/disables current document’s header.
Default: yes
Header image
Document’s header image. Needs to be set as path in the uploads folder. You can use shortcodes here.
Default: None
Header title
Document’s header title. You can use shortcodes here.
Default:
Invoice [prop name="doc_nr"]
Header text
Document’s header text. You can use shortcodes here.
Default:
Company name
Company address
Header font size
Default: 7
Enable footer
Enables/disables current document’s footer.
Default: yes
Footer text
You can use shortcodes here. Available placeholders: %page_num%, %total_pages%.
Default: %page_num% / %total_pages%
Footer text alignment
Possible values: Left; Center; Right; Justify.
Default: Right
Footer font size
Default: 7

Content Options

HTML style
Document’s styling. You can use shortcodes here.
Default:
table {
    width: 100%;
}

table th {
    font-weight: bold;
}

table, tr, th, td {
    border: 1px solid gray;
    border-collapse: collapse;
    padding: 2px;
}

table.order-items th.price, table.order-items td.price {
    text-align: right;
}

table.order-items th.qty, table.order-items td.qty {
    text-align: center;
}

table.totals {
    border: none;
}

table.totals th {
    width: 90%;
    text-align: right;
    border: none;
    font-weight: normal;
}

table.totals td {
    width: 10%;
    text-align: right;
    border: none;
    font-weight: bold;
}
HTML content
Document’s content. You can use shortcodes here.
Default:
<h1>Invoice</h1>

<table>
    <tbody>
        <tr><td>Invoice nr.</td><td><strong>[prop name="doc_nr"]</strong></td></tr>
        <tr><td>Invoice date</td><td><strong>[prop name="doc_formatted_date"]</strong></td></tr>
        <tr><td>Order nr.</td><td>[prop name="order_number"]</td></tr>
        <tr><td>Order date</td><td>[prop name="order_formatted_date_created"]</td></tr>
    </tbody>
</table>

[[clear]]

<table>
    <tbody>
        <tr><th>Seller</th><th>Buyer</th></tr>
        <tr><td>Company name<br>Company address</td><td>[prop name="order_formatted_billing_address"]</td></tr>
    </tbody>
</table>

[[clear]]

<table class="order-items">
    <tbody>
        <tr><th style="width:5%">Nr.</th><th style="width:56%">Description</th><th style="width:12%">SKU</th><th class="qty" style="width:7%">Qty</th><th class="price" style="width:10%">Price (excl. tax)</th><th class="price" style="width:10%">Total (excl. tax)</th></tr>
        [each_item]<tr><td>[prop name="item_nr"]</td><td>[prop name="item_name"]</td><td>[prop name="item_product_sku"]</td><td class="qty">[prop name="item_qty"]</td><td class="price">[prop name="item_single" format="price"]</td><td class="price">[prop name="item_total" format="price"]</td></tr>[/each_item]
        [if value1="{prop name='order_shipping_total'}" operator="greater" value2="0"]<tr><td>[prop name="order_total_items_count" add="1"]</td><td>[prop name="order_shipping_method"]</td><td></td><td class="qty">1</td><td class="price">[prop name="order_shipping_total" format="price"]</td><td class="price">[prop name="order_shipping_total" format="price"]</td></tr>[/if]
    </tbody>
</table>
<table class="totals">
    <tbody>
        <tr><th>Total (excl. tax)</th><td>[prop name="order_total_excl_tax" format="price"]</td></tr>
        <tr><th>Tax</th><td>[prop name="order_total_tax" format="price"]</td></tr>
        <tr><th>Total (incl. tax)</th><td>[prop name="order_total" format="price"]</td></tr>
    </tbody>
</table>

<p><strong>Total in words:</strong> [prop name="order_total_in_words"]</p>
<p><strong>Payment method:</strong> [prop name="order_payment_method_title"]</p>

[[clear]]

<table style="margin-top: 30px">
    <tbody>
        <tr><th>Invoice created by:</th><td>[prop name="doc_author_full_name"]</td></tr>
        <tr><th>Invoice accepted by:</th><td></td></tr>
    </tbody>
</table>
Font size
Default: 8

Counters Options

This section allows you to set current counters for each document. Counter number will be assigned to the new document and then automatically increased.

You can use counter in document settings with [prop name="doc_counter"] shortcode.

PDF Invoicing for WooCommerce - Counters Options

Shortcodes

Shortcodes can be used in “Number format”, “Header image”, “Header title”, “Header text”, “HTML style” and “HTML content” document settings.

[prop] shortcode

This is main plugin’s shortcode. It allows you to display various document, order, order item or order item product properties.

name attribute:

  • doc_counter
  • doc_nr
  • doc_formatted_date
  • doc_author_full_name
  • order_number
  • order_formatted_date_created
  • order_subtotal
  • order_total
  • order_total_in_words
  • order_total_tax
  • order_total_excl_tax
  • order_shipping_total
  • order_shipping_method
  • order_payment_method_title
  • order_formatted_billing_address
  • order_formatted_shipping_address
  • order_total_items_count
  • order_discount
  • order_discount_incl_tax
  • order_discount_tax
  • order_discount_percent
  • order_billing_first_name
  • order_details_email
  • order_details_table
  • order_meta
  • order_func
  • item_nr
  • item_name
  • item_qty
  • item_single
  • item_subtotal
  • item_subtotal_tax
  • item_total
  • item_total_tax_percent
  • item_total_incl_tax
  • item_total_tax
  • item_discount
  • item_discount_incl_tax
  • item_discount_tax
  • item_discount_percent
  • item_meta
  • item_func
  • item_product_id
  • item_product_taxonomy
  • item_product_sku
  • item_product_meta
  • item_product_func
Examples
[prop name="order_formatted_billing_address"]

[each_item] shortcode

[each_item] shortcode allows you to loop through the order items.

Examples
[each_item]<tr><td>[prop name="item_nr"]</td><td>[prop name="item_name"]</td><td>[prop name="item_product_sku"]</td><td class="qty">[prop name="item_qty"]</td><td class="price">[prop name="item_single" format="price"]</td><td class="price">[prop name="item_total" format="price"]</td></tr>[/each_item]

[if] shortcode

This is a conditional shortcode.

Examples
[if value1="{prop name='order_shipping_total'}" operator="greater" value2="0"]<tr><td>[prop name="order_total_items_count" add="1"]</td><td>[prop name="order_shipping_method"]</td><td></td><td class="qty">1</td><td class="price">[prop name="order_shipping_total" format="price"]</td><td class="price">[prop name="order_shipping_total" format="price"]</td></tr>[/if]

[clear] shortcode

This simple shortcode outputs empty line. Shortcode has no attributes.

Examples
[clear]

Reviews

There are no reviews yet.

Be the first to review “PDF Invoicing for WooCommerce”

Your email address will not be published.

Free version

This plugin is a premium version of free "PDF Invoicing for WooCommerce" plugin.

Changelog

1.5.0 - 14/04/2022

  • Fix - Admin actions - Displaying actions for the refunded orders as well now.
  • Dev - General - Advanced Options - Use monospace font - Now applied in the "Header text" and "Footer HTML content" settings as well.
  • Dev - Doc - "Bulk actions" option added.
  • Dev - Doc - "Styling and Filtering Options" settings section added: "HTML style" and "HTML content filters" options moved from the "Content Options" subsection.
  • Dev - Doc - Page format - "Custom" (and "Custom width", "Custom height") values added.
  • Dev - Doc - Create:
    • "On payment complete" trigger added.
    • "On checkout order processed" trigger added.
    • "On order partially refunded" trigger added.
  • Dev - Doc - Emails - "Partially refunded order" email added.
  • Dev - Doc - Footer:
    • "Footer height" option added.
    • "Footer text color" option added.
    • Footer HTML content - HTML is processed now. Option renamed (was "Footer text").
  • Dev - Shortcodes - [each_refund] shortcode added.
  • Dev - Shortcodes - [prop]:
    • refund_nr option added.
    • refund_total option added.
    • refund_reason option added.
    • order_total_refunded option added.
    • order_total_tax_refunded option added.
    • order_total_shipping_refunded option added.
    • order_status option added.
    • order_total_items_qty option added.
    • order_total_excl_tax_excl_shipping option added.
    • item_product_image option added.
    • format - price - Taking into account current order currency now.
    • doc_formatted_date - add_days attribute added.
    • item_product_meta - use_parent attribute added.
  • Dev - get_pdf(): Checking if K_PATH_IMAGES is defined now.
  • Dev - Merge PDFs: FPDI library (v2.3.6) added.
  • Dev - "TCPDF" library updated to v6.4.4 (was v6.3.2).
  • Dev - Code refactoring.
  • WC tested up to: 6.4.
  • Tested up to: 5.9.

1.4.0 - 09/08/2021

  • Dev - General - Admin order edit page meta box added.
  • Dev - General - Admin actions - "Print" button added.
  • Dev - General - Admin actions - Images replaced with icons.
  • Dev - General - Advanced Options - "Shortcode prefix" option added (defaults to empty string).
  • Dev - General - Advanced Options - "Suppress errors" option added (defaults to yes).
  • Dev - General - Advanced Options - "Use monospace font" option added (defaults to no).
  • Dev - Page Options - "RTL" option added.
  • Dev - Header Options - "Header text alignment" option added.
  • Dev - Header Options - "Header text color" option added.
  • Dev - Header Options - "Header line color" option added.
  • Dev - Header Options - "Header image width" option added.
  • Dev - Header Options - "Header image alignment" option added.
  • Dev - Header Options - "Font" option added.
  • Dev - Footer Options - "Font" option added.
  • Dev - Content Options - "Line color" option added.
  • Dev - Content Options - HTML content filters - "Balance tags" option added (defaults to yes).
  • Dev - Content Options - HTML content filters - "Replace line breaks" option added (defaults to no).
  • Dev - Content Options - "Font" option added.
  • Dev - Shortcodes - [prop] - Aliases added for all properties. Now it's possible to use e.g. [order_number] instead of [prop name="order_number"], etc. [prop] shortcodes replaced with aliases in doc settings default values.
  • Dev - Shortcodes - [prop] - order_tax_totals option added.
  • Dev - Shortcodes - [prop] - order_subtotal_incl_tax option added.
  • Dev - Shortcodes - [prop] - order_total_excl_shipping option added.
  • Dev - Shortcodes - [prop] - item_single_incl_tax option added.
  • Dev - Shortcodes - [prop] - doc_formatted_date - datetime_format attribute added (defaults to Y-m-d).
  • Dev - Shortcodes - [prop] - order_formatted_date_created - datetime_format attribute added (defaults to Y-m-d).
  • Dev - Shortcodes - [prop] - find and replace attributes added.
  • Dev - Shortcodes - [current_time] shortcode added.
  • Dev - Shortcodes - [checkbox] shortcode added.
  • Dev - Code refactoring.
  • WC tested up to: 5.5.
  • Tested up to: 5.8.

1.3.0 - 26/06/2021

  • Fix - Shortcodes - [prop] - order_func, item_func, item_product_func - Now properly checking if function is callable.
  • Fix - Spelling error fixed in "number to words" function for the Lithuanian language.
  • Dev - Doc - "My account" option added.
  • Dev - Admin - Orders list - Showing created documents for cancelled orders now.
  • Dev - Admin - Settings restyled.
  • Dev - Localization - load_plugin_textdomain() moved to the init action.
  • Dev - Code refactoring.
  • WC tested up to: 5.4.
  • Tested up to: 5.7.

1.2.2 - 04/08/2020

  • Dev - Adding order notes on doc creation and removal now. alg_wc_pdf_invoicing_add_order_notes filter added (defaults to true).
  • WC tested up to: 4.3.

1.2.1 - 19/06/2020

  • Dev - Doc - "Margin" options added.
  • Dev - Shortcodes - [each_item] - Optional type attribute added (defaults to line_item).
  • Dev - Shortcodes - [prop] - order_total_items_count - Optional type attribute added (defaults to line_item).
  • Dev - Shortcodes - [prop] - Shortcodes are now processed in optional add and multiply attributes.
  • WC tested up to: 4.2.
  • Description updated in readme.txt

1.2.0 - 03/04/2020

  • Fix - Shortcodes - Orders - Bulk actions (e.g. email attachments) fixed.
  • Dev - Shortcodes - [prop] - item_total_tax_percent - Not applying round() anymore.
  • Dev - Shortcodes - [prop] - order_discount option added.
  • Dev - Shortcodes - [prop] - order_discount_incl_tax option added.
  • Dev - Shortcodes - [prop] - order_discount_tax option added.
  • Dev - Shortcodes - [prop] - order_discount_percent option added.
  • Dev - Shortcodes - [prop] - item_subtotal option added.
  • Dev - Shortcodes - [prop] - item_subtotal_tax option added.
  • Dev - Shortcodes - [prop] - item_discount option added.
  • Dev - Shortcodes - [prop] - item_discount_incl_tax option added.
  • Dev - Shortcodes - [prop] - item_discount_tax option added.
  • Dev - Shortcodes - [prop] - item_discount_percent option added.
  • Dev - Shortcodes - alg_wc_pdf_invoicing_return_prop filter added.
  • Dev - Admin settings descriptions updated.
  • Tested up to: 5.4.
  • WC tested up to: 4.0.

1.1.1 - 12/02/2020

  • Fix - Emails - Possible "Too few arguments ..." error fixed.

1.1.0 - 04/02/2020

  • Dev - Doc - "Enable header" option added.
  • Dev - Doc - "Header font size" option added.
  • Dev - Doc - "Enable footer" option added.
  • Dev - Doc - "Footer text" option added.
  • Dev - Doc - "Footer text alignment" option added.
  • Dev - Doc - "Footer font size" option added.
  • Dev - Doc - "Font size" option added.
  • Dev - Admin settings restyled (divided into subsections).
  • Dev - Alg_WC_PDF_Invoicing_TCPDF class added.
  • Dev - Shortcodes - [prop] - item_total_tax_percent option added.
  • Dev - Shortcodes - [prop] - item_total_incl_tax option added.
  • Dev - Shortcodes - [prop] - item_total_tax option added.
  • Dev - Shortcodes - [prop] - order_subtotal option added.
  • Dev - Shortcodes - [prop] - order_billing_first_name option added.
  • WC tested up to: 3.9.

1.0.2 - 21/01/2020

  • Dev - Shortcodes - before and after attributes are now displayed for non-empty values only.

1.0.1 - 16/01/2020

  • Fix - Shortcodes - item_product shortcodes fixed.
  • Dev - Shortcodes - [prop] - item_product_id option added.
  • Dev - Shortcodes - [prop] - item_product_taxonomy option added.

1.0.0 - 14/01/2020

  • Initial Release.

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin’s zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to “Admin Dashboard > Plugins > Add New > Upload Plugin” and browse for downloaded zip file.
  • If plugin is successfully installed – you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.