How to Add Order ID in Invoice PDF in Magento 2

How to Add Order ID in Invoice PDF in Magento 2

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 sectionto Add Order ID in Invoice PDF in Magento 2

  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.

You can also refer to Add Order ID in Invoice PDF in Magento 2 from our Magento 2 video tutorial series:
How to Add Order ID in Invoice PDF in Magento 2 1

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 8 Reviews)

Marketing Manager at Meetanshi, she is an expert in the field with 6 years of experience. Apart from work, she is a foodie, watch lover and a proud wife.

Leave a reply:

Your email address will not be published.