i was wondering how i can have in confirmation email the single item price

like in the image

enter image description here

  • Did you ever find a solution? None of the answers here work for me to get the unit price in file app/design/frontend/PACKAGE/THEME/Magento_Sales/templates/email/item/invoice/default.phtml
    – Webninja
    Oct 1, 2020 at 14:58
  • I added single item price using above example. Now how can I align the total section accordingly? ![enter image description here](i.stack.imgur.com/UP5PM.jpg)
    – Chathura
    Oct 10, 2023 at 6:52

5 Answers 5


You need to copy the following file to your theme folder like below:




Now add one more th to thead with your required heading name.

Again copy the following file to your theme folder like below:




Here you can one td with the same position as th for heading. You will get the unit price by $_item->getPrice(). Now you need to format this value with currency symbol.

Hope this helps!


for the email /app/design/frontend/YOUR_PACKAGE/YOUR_THEME/Magento_Sales/templates/email/items/order/default.phtml

$_order - > formatPrice($_item->getPrice());

above working for me !!

<?=  $_order->formatPrice($_item->getPrice()) ?>
  • Please add some more details about it.
    – Msquare
    May 1, 2020 at 9:53

You need to edit / override following 2 files, if you want to show in sales order emails.

  1. app/design/frontend/YOUR_PACKAGE/YOUR_THEME/Magento_Sales/templates/email/items.phtml

  2. app/design/frontend/YOUR_PACKAGE/YOUR_THEME/Magento_Sales/templates/email/items/order/default.phtml


Please check and override the files mentioned below in your custom theme, then verify the email output.

To customize the table header, you need to override the following file and update its content.


Please add the following code to the existing file.

<th class="item-price">
    <?= $block->escapeHtml(__('Price')) ?>

To display the product price value in the HTML of a simple product, use the code provided below.


Please add the following code to the existing file.

<td class="item-price">
    <?= /* @noEscape */ $_order->formatPrice($_item->getPrice()) ?>

Various types of product HTML are sourced from different files. Please ensure that you are overriding the correct file for your specific product.

For example, HTML for bundle products is sourced from the following path:


After that, there is a misalignment in the total section of your email due to the addition of a new column. To correct this, you need to override the following two files. Add a new tag within the Total section and update the colspan attribute to colspan="4". If there is already colspan="3", update it to colspan="4"



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.