2015-04-23 62 views
4

我想在中顯示Gift message option帳單信息部分Magento checkout在Magento結帳中的帳單信息部分添加禮物消息

目前,這個選項是表示送貨方式magento checkout.

我怎樣才能做到這一點?我使用magento 1.9.0.1.

請幫助..

+0

更新計費模板文件還 –

+0

@帕萬·庫馬爾相同的代碼,計費信息位於前端\ MyTemplate的\ MyTemplate的\模板\執着/結賬/ onepage/billing.phtml頁和禮品選項在前端\ base \ default \ template \ giftmessage/inline.phtml頁面中。不過,我複製inline.phtml中的所有代碼並粘貼到billing.phtml中,但由於安全原因,該頁面顯示錯誤 - 無法顯示。 – next2u

+0

你可以粘貼你的代碼,如何顯示它在運輸方法部分 –

回答

1
  1. 轉到您當前的主題包,打開當前正在拍攝的文件checkout-> onepage-> shipping_method-> additional.phtml刪除以下行。

    <div id="onepage-checkout-shipping-method-additional-load"> 
        <?php echo $this->getChildHtml('additional') ?> 
    </div>  
    
  2. 然後轉到checkout-> onepage-> billing.phtml無論你想顯示在賬單節禮物消息添加下面的線。

    <div id="onepage-checkout-shipping-method-additional-load"> 
        <?php echo $this->getLayout()->createBlock('checkout/onepage_shipping_method_additional')->setTemplate('checkout/onepage/shipping_method/additional.phtml')->toHtml(); ?> 
    </div>