我試圖在發貨頁面的結帳過程中包含一個自定義模板。我希望該模板採用其父模板的功能,以便可以使用模板中的任何運輸變量。不過,我不能讓magento加載模板。這是我的XML(頭文件腳本添加成功)。我的模塊被稱爲Tm_ShippingDate帶定製模塊的Magento XML佈局
<layout version="0.1.0">
<checkout_multishipping_shipping>
<reference name="head">
<action method="addItem"><type>js_css</type><name>calendar/calendar-blue.css</name><params/><!--<if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/lang/calendar-en.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
<action method="addItem"><type>js</type><name>calendar/calendar-setup.js</name><!--<params/><if/><condition>can_load_calendar_js</condition>--></action>
</reference>
<block type="tm/multishipping_shipping" name="tm_shippingdate" template="tm/shippingdate/shippingdate.phtml"></block>
<!-- <block type="checkout/multishipping_shipping" name="checkout_shipping" template="checkout/multishipping/shippingdate.phtml"> -->
</checkout_multishipping_shipping>
然後我有這個在我結賬shipping.phtml模板
<?php echo $this->getBlockHtml('shippingdate') ?>
感謝