Magento 2 – How to Remove Tooltips from Checkout Page

checkoutknockoutjsmagento2uicomponentxml

I tried to remove tooltip in several ways but anything worked.
What's the XML code needed to do this and in which xml file do i have to make the change?

Here is one of my attempts

    <referenceBlock name="checkout.root">
        <arguments>
            <argument name="jsLayout" xsi:type="array">
                <item name="components" xsi:type="array">
                    <item name="checkout" xsi:type="array">
                        <item name="children" xsi:type="array">
                            <item name="steps" xsi:type="array">
                                <item name="children" xsi:type="array">
                                    <item name="shipping-step" xsi:type="array">
                                        <item name="children" xsi:type="array">
                                            <item name="shippingAddress" xsi:type="array">
                                                <item name="children" xsi:type="array">
                                                    <item name="telephone" xsi:type="array">
                                                        <!--Remove item-->
                                                        <item name="tooltip" xsi:type="array">
                                                               <item name="componentDisabled" xsi:type="boolean">true</item>                         
                                                        </item>
                                                    </item>
                                                </item>
                                            </item>
                                        </item>
                                    </item>
                                </item>
                            </item>
                        </item>
                    </item>
                </item>
            </argument>
        </arguments>
    </referenceBlock>

Best Answer

I really really don't know if it's the Magento right way but I tried this:

<item name="telephone" xsi:type="array">
  <item name="config" xsi:type="array">
      <item name="tooltip" xsi:type="boolean">false</item>
  </item>
</item>

and it worked for me.

After many attempts I came to this conclusion: the Knockout template searches for the element tooltip

<!-- ko if: element.tooltip -->
    <!-- ko template: element.tooltipTpl --><!-- /ko -->
<!-- /ko -->

so it's expecting it to exist OR to be a boolean value set to true, so I just converted it in type boolean set to false.

Related Topic