I'm trying to extend checkout page, I copied the
checkout_index_index.xml
in my layout folder (vendor/theme/Magento_Checkout/layout) I change some thing in the file, now in the payment method I can't find method I set on the admin page. If I remove my custom layout file, the method come's back and they work's fine.
This'is my custom xml file (I remove jsLayout part I didn't modify it):
<?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<css src="css/checkout.css" media="screen,projection" />
</head>
<body>
<referenceContainer name="page.messages" remove="true"/>
<move element="logo" destination="top-header" before="header-links"/>
<referenceContainer name="newsletternewsletter" remove="true"/>
<referenceBlock name="page.main.title">
<action method="setPageTitle">
<argument translate="true" name="title" xsi:type="string">Checkout</argument>
</action>
</referenceBlock>
<referenceContainer name="content">
<container name="checkout-container" as="checkout-container" htmlTag="div" htmlClass="row no-margin">
<container name="checkout-center" as="checkout-center" htmlTag="div" htmlClass="col s12 m10 l10 offset-m1 offset-l1">
<container name="checkout-border" as="checkout-border" htmlTag="div" htmlClass="dashboard-container">
<block class="Magento\Checkout\Block\Onepage" name="checkout.root" template="Magento_Checkout::onepage.phtml" cacheable="false">
<arguments>
<argument name="jsLayout" xsi:type="array">
<!-- NO CHANGE HERE -->
</argument>
</arguments>
</block>
</container>
</container>
</container>
</referenceContainer>
</body>