Question

I'm currently using Magento ver. 2.3.4 and I'd like to hide the tax display in the sales order emails. I've added the following to my design template:

httpdocs / app / design / frontend / Infortis / ultimo_child / Magento_Sales / layout  / sales_order_email_items.xml

With the following content:

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Email Order Items List" design_abstraction="custom">
    <update handle="sales_email_order_renderers"/>
    <update handle="sales_email_item_price"/>
    <body>
        <referenceBlock name="tax" display="false"/>
    </body>
</page>

However I am still seeing the tax being displayed in the order confirmation email. I've checked numerous other questions on here but none of the answers seem to work for me.

Could anyone please let me know what I'm doing wrong here please?

Thank you.

Was it helpful?

Solution

Everything is correct, the sales_order_email_items.xml no longer exists in Magento 2.3, now it's sales_email_order_items.xml

In overrides, remember to always check the original file, path and name, sometimes it changes so older examples and answers are correct but a bit outdated. ;)

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top