How To Add Order Number To Subject In Order Email Template in Magento 2

How To Add Order Number To Subject In Order Email Template in Magento 2

So you have made a sale.

Yaay!

But your job is still not done. Conversion is only one side of the equation, you also need to gear up for the post-purchase customer experience.

And how well crafted your order emails are, does matter. A misplaced order email is a lost opportunity.

However, it is not a task that requires any extraordinary efforts. Even small changes like adding order number to the subject line in the order related emails can push significantly towards improving customer experience.

And to add order number to subject in order email template in Magento 2, all you have to do is run the below code:

Method to Add Order Number To Subject In Order Email Template in Magento 2:

That’s it.

Implementing such small tactics can contribute to noticeable customer experience improvement.

PS – You can also use custom variables in transaction emails in Magento 2 to optimize order emails!

Hopefully, implementing the above solution will help you with order emails. However, if you are stuck in between, feel free to mention your doubts in the Comments section below. I’d be happy to help you out.

Sharing the solution with fellow developers via social media would be a nice thing to do! 😊

Thank you.

PPS: You can take the game one level up and go for  Magento 2 Email Attachment extension to automate attaching order docs in sales emails.  Just saying 😉

5
(based on 4 Reviews)

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply