3
我尝试重写Magento的2 - 如何覆盖块模板
供应商\ Magento的\模块multishipping \图\前端\模板\结账\ addresses.phtml
我创建布局
应用\代码\我\ CustomModule \视图\前端\布局\ 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>
而且模板
应用程序\代码\我\ CustomModule \图\前端\模板\结账\ addresses.phtml
<h1>It works </h1>
它不工作...请帮帮我! 谢谢。
这工作非常感谢。 – ViSuaL