1

Magento 2 Order Email Template subTotal tfoot.

Where Can I edit the Order Email Template subTotal tfoot ??? I need to edit colspan 2 to 3. please check the image

4
  • file responsible for setting colspan is vendor/magento/module-sales/view/frontend/layout/sales_email_order_items.xml
    – Pawan
    Commented Jul 12, 2020 at 13:02
  • In above file order_totals block has argument label_properties. Yuo need to override above file in custom theme.
    – Pawan
    Commented Jul 12, 2020 at 13:04
  • Thanks a lot bro.
    – magetips
    Commented Jul 12, 2020 at 13:43
  • welcome :) , I put my comment as answer so you can accept and up-vote.
    – Pawan
    Commented Jul 12, 2020 at 13:50

1 Answer 1

1

File responsible for setting colspan is:

vendor/magento/module-sales/view/frontend/layout/sales_email_order_items.xml

In above file order_totals block has argument label_properties. You need to override above file in custom theme.

Create new file at:

app/design/frontend/{Package}/{theme}/Magento_Sales/layout/sales_email_order_items.xml

With following content:

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>  
        <referenceBlock name="order_totals">
            <arguments>
                <argument name="label_properties" xsi:type="string">colspan="3"</argument>
            </arguments>
        </referenceBlock>
    </body>
</page> 

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.