0
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance dc" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <referenceBlock name="checkout.cart">
        <action method="setTemplate">
           <argument name="template" xsi:type="string">Ocodewire_Designtool::cart.phtml</argument>
        </action>
    </referenceBlock>
</page>
  • 1
    please provide full code to debug more. Your question is not understand by user. – Rakesh Jesadiya Jan 20 '17 at 10:42
  • 1
    please describe your problem in more detail. – Dhiren Vasoya Jan 20 '17 at 10:46
  • in above this is my checkout_cart_index.xml in my custom module and in template i make phtml and call here in xml but in cart page not show anything – Rahul Katoch Jan 20 '17 at 10:48
5

You forgot the <body> tag.

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance dc" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="checkout.cart">
           <action method="setTemplate">
               <argument name="template" xsi:type="string">Ocodewire_Designtool::cart.phtml</argument>
           </action>
        </referenceBlock>
    </body>
</page>

See devdocs for instructions on page configuration: http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/layouts/layout-types.html#Page-configuration-structure-and-allowed-layout-instructions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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