How to add Payment method title in order email

How to add Payment method title in order email

October 12, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to add Payment method title in order email

Enhancing Magento Order Emails: Displaying Payment Method Titles

As an e-commerce developer, you often need to customize your store’s communication with customers to provide a better shopping experience. One common requirement is to include specific payment details in order confirmation emails sent by Magento. In this guide, we’ll explore how to add only the title of the selected payment method at the bottom of your order email templates.

Understanding Magento’s Order Email Templates

Magento uses a template system for generating and sending transactional emails. The order_new.html file located in app/design/frontend/[Your_Theme]/template/email/html/ is responsible for rendering the layout of new order notifications sent to customers.

By default, this template includes a block called payment_html, which displays the HTML content of the selected payment method. However, if you only want to display the title (e.g., “Cash on Delivery” or “Credit Card”), let’s dive into how to achieve this.

Adding Payment Method Title to Order Emails

To add the payment method title to your order email footer, follow these steps:

Step 1: Identify the Payment Method Object

In Magento, the selected payment method is available as an object in the order_new.html template. You can access it using $this->getPaymentHtml() function.

Here’s a snippet of the default code block:

{{block type="core/template" name="payment_html" template="email/payment.phtml"}}
{{var payment_html}}

Step 2: Modify the Payment Method Template

The payment_html block is rendered using the app/design/frontend/[Your_Theme]/template/email/payment.phtml file. Open this file and locate the following line:

<?php echo $this->escapeHtml($block->getPayment()->getMethodTitle()) ?>

This line prints both the payment method title and its description.

Step 3: Modify the Payment Method Title Display

To display only the payment method title without the description, you need to modify the above line of code. Change it to:

<?php echo $this->escapeHtml($block->getPayment()->getMethodTitle()) ?>

This will ensure that only the title is displayed in your order email.

Step 4: Add the Payment Method Title to Your Order Email Template

Now, let’s add this payment method title to the footer of your order_new.html template. Open the file and find the appropriate location where you want to place the title (e.g., after the shipping details or before the order summary).

Add the following line:

<div>{{var payment_html}}</div>

This will include the modified payment method title block in your email.

Conclusion: Enhancing Order Emails with Payment Method Titles

By following these steps, you can now display only the titles of selected payment methods at the bottom of your Magento order emails. This helps to keep the email content concise and focused on the most relevant information for your customers.

Remember to always test your changes in a development environment before deploying them to a live store. If you need further assistance with customizing Magento templates, feel free to explore our Laravel Company Blog for more detailed tutorials and best practices.

Happy coding, and until next time!

Themes Email Orders Customers

Our network