I wish to remove these elements :


Here is the tax configuration :

enter image description here

1 Answer 1


The totals in that gray box are populated from:

  • vendor/magento/module-sales/view/frontend/templates/order/totals.phtml

Copy that file to your theme:

  • app/design/frontend/vendor//Magento_Sales/templates/order/totals.phtml

Now you can skip the "Shipping and Handling" or "tax" sections with a continue statement:

<?php foreach ($block->getTotals() as $_code => $_total) : ?>
    <?php if ($_code === 'shipping' || $_code === 'tax') {
    } ?>
    <?php if ($_total->getBlockName()) : ?>

Hope that helps someone!

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.