Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users. Post the aforementioned date, users who purchase the plugin, which now is made available as multiple add-ons, must refer to their corresponding setup guides. The drag-and-drop customizer feature is now available for purchase as an add-on.

WooCommerce PDF Invoices, packing slips and credit notes plugin | WooCommerce Shipping labels, Dispatch labels and Delivery notes plugin | WooCommerce Address labels plugin | WooCommerce Picklists plugin | WooCommerce Proforma invoices plugin | Customizer for WooCommerce PDF Invoices

Since 28th December 2022, this plugin version has been discontinued for purchase. However, support will be continued for existing users.

Home > Docs > WooCommerce PDF Invoices, Packing Slips, Delivery Notes and Shipping Labels > Use the order number as invoice number in Woocommerce

Use the order number as invoice number in Woocommerce

Last updated on September 1, 2022

An invoice should possess a unique number. When you match the order number with the invoice number, it is a lot easier to manage it.

By using WebToffee’s PDF Invoices & Packing Slip plugin for Woocommerce on your store site, you can match the invoice number with the order number in only a few steps.

Get started

  • First of all, install and activate the plugin, a new menu Invoice/Packing appears in the WordPress dashboard.
  • Head on to Invoice/Packing > Invoice menu. The invoice settingswindow will open up.
    OR
  • Go to General Settings > Documents tab > Invoice > Settings.

Matching Invoice & Order Number in WooCommerce

From the invoice settings window, go to the Invoice number tab.

You can set up a custom invoice number with prefix/suffix/number series or even mirror the order number as invoice number respectively.

WooCommerce Invoice or packing-Invoice Settings- Invoice Number
  • Use the order number as invoice number: Choose Woocommerce order number to use the order number as the invoice number. If you want to generate a custom invoice number then select Custom number series and input the necessary details into the populated fields. The fields are populated on the basis of the number format previously selected.
    • Invoice Start Number: Enter the Invoice Start Number.
  • Custom invoice number
    • Invoice number format: Choose [number] from the format to have the invoice number without prefixes or suffixes. To have a prefix or suffix, you can choose an appropriate option from the drop-down as shown below:
    Invoice number format
  • Invoice Number Suffix: Enter the suffix which will be added after the invoice number. You can use any of the date formats or alphanumeric characters as a suffix as shown in the image below.
  • Date formats
    Date formats
  • Invoice Length: Indicates the total length of the invoice number. If the length of the generated invoice number is less than the provided, it will be padded with ‘0’. E.g if you specify 7 as invoice length and your invoice number is 8009, it will be represented as 0008009 in the respective documents.
  • Update and reset the invoice number format settings by clicking on the Update and Reset button.

    Now all the invoices generated from your store will use the order number as the invoice number.

    Custom number format

    Furthermore, you can make use of custom codes and modify the appearance of the number format as per your need. For example, to show the order total in words along with digits, simply use the placeholder [wfte_total_in_words] in your active template’s HTML code.

    Go to Invoice/Packing > Invoice > Customize, switch to the Code editor and insert the code to show the total amount in words. Sample HTML code will look like the one shown below:

    <div>
      <span>__[Price in words:]__</span> [wfte_total_in_words]
    </div>