How can i remove Subtotal from order email in Magento 2.3.4?

enter image description here

1 Answer 1


I found a solution in case anyone need it.

You can override /public_html/vendor/magento/module-sales/view/frontend/templates/order/totals.phtml in your theme /public_html/app/design/frontend/[theme]/Magento_Sales/templates/order/totals.phtml

and add <?php if($_code == 'subtotal'){ continue; } ?>

after <?php foreach ($block->getTotals() as $_code => $_total) : ?> enter image description here

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.