Back

VibeFox PDF Invoices — Help

Requirements

WordPress: 6.0 or later.

WooCommerce: 7.0 or later, installed and active. WordPress does not activate the plugin without it. If WooCommerce is turned off later, the plugin stops working and shows the notice VibeFox PDF Invoices requires WooCommerce to be installed and active.

PHP: 8.0 or later, with the "zip" extension for downloading several documents at once.

VibeFox license key: bought on vibefox.net. One key works on one domain.

Installation

1. In WordPress go to Plugins > Add New > Upload Plugin, choose the plugin ZIP file and click Install Now. You can also upload the vfw_pdf_invoices folder to /wp-content/plugins/ by FTP.

2. Click Activate. WordPress opens VF PDF Invoices > Settings > License. Paste your VibeFox license key into License key and click Activate. Until the key is active the plugin stays switched off and its menu shows only Settings (see License key).

3. Once the key is active, the plugin creates the protected folder wp-content/uploads/vfw-pdf-invoices/. The menu VF PDF Invoices appears with the pages Bulk export and Settings.

4. Open VF PDF Invoices > Settings. Fill in the shop details and add your logo in Texts. Choose the statuses that create invoices and the e-mails they are attached to in Automation & emails.

5. Use the preview buttons in the settings sidebar to check the layout.

Configuration

All settings are on VF PDF Invoices > Settings; the sections are listed on the left. Click Save Changes to save them. The sidebar has preview buttons for the Invoice, Packing slip and Credit note: they render a sample document with your current edits, even before saving. Previews never assign numbers.

Documents

Numbers are never reused: an invoice keeps its number and date when it is downloaded again or the order changes.

Invoice number prefix: printed before the sequential number, for example INV- gives INV-000125. Default: INV-.

Number length: digits of the number, padded with zeros: 6 gives 000125. 0 = no padding. Default: 6.

Next numbers: shows the next invoice and credit note numbers.

Date format: PHP date format of the document dates, for example d.m.Y or Y-m-d. Empty = the WordPress date format. Default: d.m.Y.

Credit note number prefix: credit notes have their own sequence. Default: CR-.

Automation & emails

Create the invoice automatically: the invoice number is assigned as soon as the order gets one of these statuses, custom order statuses included. Default: Processing and Completed. Empty = invoices are created only manually or when attached to an e-mail.

Attach the invoice to emails: the PDF invoice is attached to these WooCommerce e-mails, and created if the order has none yet. Default: Processing order, Completed order and Order details (customer invoice). Status e-mails of VibeFox Order Statuses are listed too.

Attach the credit note to emails: the credit note is created and attached when one of these e-mails is sent. Default: Refunded order (also for partial refunds).

Template

Paper size: A4 (default) or US Letter.

Accent colour: the title, table header and totals line. Default: #1f3a5f.

Font size (pt): 7 to 12. Default: 9.

Show SKU with default layout: default on.

Show product options: variation attributes and other item details under the product name. Default: on.

Show the customer note: default on.

Bank details on unpaid invoices: for "Direct bank transfer" orders that are not paid yet: the accounts from WooCommerce > Settings > Payments > Direct bank transfer and the payment reference. Default: on.

Texts

Five editors with formatting, links and images from the media library: Header left, Header right, Shop Details, Prefooter (text after the products) and Footer. Empty shop details fall back to the WooCommerce store address. On a multilingual site a language switch above the fields edits the texts of each language.

Document labels: Invoice title, Credit note title, Packing slip title, Billing address heading, Shipping address heading, Column: product, Column: quantity, Column: price, Column: total, Subtotal, Discount, Shipping, Tax, Total and Payment reference (use %s where the order number should appear). Empty fields use the built-in text, shown in grey, translated automatically.

Table

Product columns: Row number, Image, Product, SKU, Qty, Price, Tax, Discount and Total. For each column you choose Show or Hide, the label, the width on invoices and credit notes and on packing slips, and the alignment (Left, Center, Right); drag the rows to change the order. Widths are scaled to 100% in each PDF. Packing slips use the product, image, SKU, quantity and row number columns.

Totals rows: Subtotal, Discount, Shipping, Fees, Tax, Refunded, Total and Payment method, each with Show or Hide, the label and the order.

Customer access

Download button on the "Order received" page: shown when the invoice already exists, for example when it was created automatically for the status of the new order. The link is personal and expires after a day. Default: on.

Download buttons in "My account": in the order list and on the order page. Customers can download only the documents of their own orders. Default: on.

Logging

Enable logging: records document generation and errors in the private log. Default: off. The log is shown below.

Uninstall & Clear

Delete data on uninstall: deleting the plugin removes its settings, counters, order document numbers, PDF files and log. Default: off.

Clear PDF files: PDF files will be regenerated on demand; issued numbers and dates are kept. Delete log entries: permanently deletes the recorded diagnostic entries.

License, Status, Import / Export

License holds the license block (see License key). Status shows your PHP, WordPress and WooCommerce versions and the multilingual setup. Import / Export saves the settings to a JSON file and loads them on another site.

How it works

Creating invoices: an invoice is created when the order gets a status from Create the invoice automatically, when an e-mail with the invoice attached is sent, or when you click Create invoice or use the bulk actions. The number and date are fixed. The document itself is rendered from the current order data each time it is opened, so corrections (address, items) are reflected.

Credit notes: created when an e-mail from Attach the credit note to emails is sent, or with Create credit note on the order screen when the order has a refund or was cancelled.

Order screen: the PDF documents box shows the invoice (Open PDF, or "not created" with Create invoice), the packing slip (Open PDF) and the credit note (Open PDF or Create credit note), and the field Note on the invoice, printed under the items of this order's invoice and saved with the order.

Orders list: buttons Invoice PDF, Packing slip PDF and Credit note PDF in the Actions column open the available documents in a new tab. The bulk actions Create PDF invoices, Download PDF invoices (ZIP) and Download packing slips (ZIP) run in small batches with a progress bar, so hundreds of orders do not time out. When many orders get invoices at once, the oldest order gets the lowest number.

Bulk export: on VF PDF Invoices > Bulk export choose Order date from, Order date to, the Document (Invoices, Packing slips, Credit notes), Create missing invoices and the Order statuses, then click Create ZIP and Download ZIP. The screen also shows how many invoices and credit notes were issued and the next numbers.

Customers: download buttons appear in My account > Orders, on the order page and on the "Order received" page, only for documents that exist. The shop staff and the customer who owns the order can open them; for guest orders the link contains the order key and expires after a day, after that the document is available from the e-mail. Other customers and guests get "403".

Languages: each document is printed in the language the customer ordered in. The language is stored on the order at checkout (classic and block checkout) with qTranslate-XT, WPML or Polylang. Older orders use the default language. DejaVu Sans fonts print Cyrillic, Greek, Latin Extended and currency symbols correctly.

Files: generated PDFs are stored in wp-content/uploads/vfw-pdf-invoices/ with an .htaccess deny rule and a random token in every file name, so they stay private even on servers that ignore .htaccess. On nginx you may add a deny rule for this folder for extra safety. The PDF library (TCPDF) is loaded only when a document is rendered and only if no other plugin has loaded its own copy.

The plugin works with WooCommerce High-Performance Order Storage (HPOS) and the block checkout.

License key

VibeFox license key: bought on vibefox.net. One key works on one domain.

The plugin works only with an activated key. Without it the plugin is switched off: its features, shortcodes, blocks, admin pages, scheduled tasks and e-mails do not run, and its menu shows only Settings with the License tab. Your settings and data are kept and come back as soon as a key is activated. Right after you activate the plugin in Plugins, WordPress opens this tab.

Open VF PDF Invoices > Settings > License, paste the key into License key and click Activate. The plugin switches on at once (the page reloads). The block License — VibeFox PDF Invoices then shows the masked key, the status Active until with the date and the domain, the buttons Check now, Change key, Remove key and the link Manage licenses and domains in your account.

Messages under the field: The key looks incomplete — copy the whole key from your account. (nothing is sent), Key not found. Check that you copied the whole key from your account., This key belongs to another product. (use the key bought for VibeFox PDF Invoices) and Domain limit reached (free a slot for this domain in your account, then click Check now). After the site address changes, click Check now.

An expired license keeps the plugin working, but without updates and support. Remove key switches the plugin off on this site; the domain slot is freed only in your vibefox.net account. If the license server cannot be reached, the plugin keeps working on the last known status. When the plugin is deleted, the key and its status are always removed.

Troubleshooting

The plugin menu shows only Settings: the license key is not active. Open VF PDF Invoices > Settings > License and click Activate (or Check now if a key is already entered); the messages under the field are explained in License key.

No invoice is attached to an e-mail: check Attach the invoice to emails. E-mails that VibeFox Order Statuses sends itself, outside the WooCommerce e-mail system, cannot carry attachments; use a WooCommerce e-mail or the customer download buttons.

The customer has no download button: buttons appear only for documents that exist. Add the order status to Create the invoice automatically or create the invoice on the order screen.

Invoice for bank transfer orders before payment: add On hold to Create the invoice automatically and the "Order on-hold" e-mail to Attach the invoice to emails. Unpaid bank transfer invoices show your bank accounts and the payment reference.

A guest sees "This link is not valid or has expired": the guest link expires after a day. The document is available in the order e-mail.

ZIP download fails: The PHP extension "zip" is required to download several documents at once. Ask your host to enable it.

Fees, discounts or refunds are missing in the totals: check Totals rows in the Table section; hidden rows are not printed.

For developers: the filter vfw_pdf_email_options adds e-mails of other senders to the attachment lists.

Uninstall

Deactivating the plugin keeps all data. To remove it, deactivate and delete it on the Plugins page. The license key and license status of this plugin are always removed. Settings, counters, document numbers and notes in the orders, the PDF files and the log are removed only if Delete data on uninstall was on. Otherwise they stay for a later re-install.

Bug Report

Thank you for helping us improve. We carefully review every report, but we do not reply to them individually. If your report leads to a change, it will be listed in the product changelog together with the report number. To discuss something in detail, please open a support ticket.

Slide to fit the puzzle