php - Magento 2 - How to override block template -


i try override

vendor\magento\module-multishipping\view\frontend\templates\checkout\addresses.phtml

i create layout

app\code\my\custommodule\view\frontend\layout\multishipping_checkout_addresses.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>         <referencecontainer name="content">             <block class="magento\multishipping\block\checkout\addresses" name="checkout_addresses" template="my_custommodule::checkout/addresses.phtml" cacheable="false">             </block>         </referencecontainer>     </body> </page> 

and template

app\code\my\custommodule\view\frontend\templates\checkout\addresses.phtml

<h1>it works </h1> 

it doesn't work... please me! thanks.

<referenceblock name='copyright'>     <action method='settemplate'>         <argument name='template' xsi:type='string'>dfr_backend::page/copyright.phtml</argument>     </action> </referenceblock> 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -