0

This question already has an answer here:

I am using aloquick theme. I would like to remove tax from cart. How can I do that ?

enter image description here

marked as duplicate by Manoj Deswal, sv3n, brentwpeterson, Siarhey Uchukhlebau, liyakat Oct 22 '17 at 4:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • there is option I. admin to remove tax from cart. another way to remove through XML too. You need to check from admin first. – Jai Oct 21 '17 at 6:04
  • Thanks @Jai for your reply. I tried from Admin but failed. Thanks – abu abu Oct 21 '17 at 6:09
1

Override a tax module to remove tax from cart page

create checkout_cart_index.xml in following path

\app\design\frontend\Vendor\theme\Magento_Tax\layout

Paste the following code in checkout_cart_index.xml

<?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="checkout.cart.totals">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="block-totals" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="tax" xsi:type="array">
                                    <item name="config" xsi:type="array">
                                        <item name="componentDisabled" xsi:type="boolean">true</item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>
  • Thanks @Ranganathan.s for your reply. I have no such location \app\design\frontend\Vendor\theme\Magento_Tax\layout. i.stack.imgur.com/Y1CAA.png – abu abu Oct 21 '17 at 5:37
  • vendor/theme refers your vendor name and theme name...use this location....\app\design\frontend\Alothemes\default\Magento_Tax\layout – Ranganathan Oct 21 '17 at 5:38
  • Thanks for your reply. I think my theme is Alothemes. But what is Vendor? Thanks – abu abu Oct 21 '17 at 5:40
  • 1
    As your screenshot Alothemes is vendor and default is theme.. – Ranganathan Oct 21 '17 at 5:42

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