Magento 2 remove Gift Cards Cart Summary

by Joshua Fricke   Last Updated September 18, 2018 00:09 AM

Working to remove the Gift Card option on Magento 2 Cart summary section. Having issue getting this working. Have created the following file:

.../app/design/frontend/***/***/Magento_Checkout/layout/checkout_cart_index.xml

The following code is not working to remove the giftcard block:

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="cart.summary">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="block-giftcard" xsi:type="array">
                            <item name="config" xsi:type="array">
                                <item name="componentDisabled" xsi:type="boolean">true</item>
                            </item>
                        </item>
                    </item>
                </argument>
            </arguments>
        </referenceBlock>
    </body>
</page>


Related Questions


Magento best practices: try / catch in templates

Updated March 16, 2017 13:09 PM



Turn template path hints off from command line

Updated April 09, 2015 19:03 PM