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