How to Add Order ID in Invoice PDF in Magento 2

October 8, 2020
By Cozmot

Magento 2 order ID can be shown in the sales documents like invoice, shipment, or credit memo. The order ID in Magento 2 makes the admin’s order management task easier.

The admin can get invoice data from order ID as well as the order information in Magento 2.

Not only that, but the customers also use order ID to track their orders in Magento 2 store. The extensions like Magento 2 Order Tracking uses only order ID and email address to let customers track their orders.

Hence, it can be quite useful to add order ID in invoice PDF in Magento 2.

Steps to Add Order ID in Invoice PDF in Magento 2:

Steps to Add Order ID in Invoice PDF in Magento 2
  1. Login to Magento 2 admin panel

  2. Go to Stores > Settings > Configuration

  3. Under Sales, select PDF Print-outs

  4. Expand the Invoice section

  5. Set Yes in Display Order ID in Header to enable order ID in invoice PDF.

  6. Click Save Config

That’s it.

The admin can also add order ID in other sales documents like shipment and credit memo.

Once done, the invoice PDF displays the order id as shown here:

Order ID in Invoice PDF in Magento 2

If you choose to not add order ID in the sales document, the invoice looks like this:

Not Show Order ID in Invoice PDF in Magento 2

Moreover, the store owner can use Magento 2 Custom Order Number extension for customizing order numbers by prefixes, suffixes, letters, counter, or any random numbers to match your business needs.

If you have queries, feel free to ask in the Comment section below.

I would like to solve your problem.

Don’t forget to share this post with Magento Community via social media.

Thank you.

]]>

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!