2016-09-27 53 views

回答

0

上面給出的代碼替換下面的HTML文件 - 「供應商\ Magento的\模塊結賬\圖\前端\網絡\模板\送貨地址\地址渲染器\ default.html中

<!-- 
 
/** 
 
* Copyright © 2016 Magento. All rights reserved. 
 
* See COPYING.txt for license details. 
 
*/ 
 
--> 
 
<div class="shipping-address-item" data-bind="css: isSelected() ? 'selected-item' : 'not-selected-item'"> 
 
    <!-- ko text: address().firstname --><!-- /ko --> <!-- ko text: address().lastname --><!-- /ko --><br/> 
 
    <!-- ko text: address().telephone --><!-- /ko --><br/> 
 
    <!-- ko if: (address().isEditable()) --> 
 
    <button type="button" 
 
      class="action edit-address-link" 
 
      data-bind="click: editAddress, visible: address().isEditable()"> 
 
     <span data-bind="i18n: 'Edit'"></span> 
 
    </button> 
 
    <!-- /ko --> 
 
    <button type="button" data-bind="click: selectAddress" class="action action-select-shipping-item"> 
 
     <span data-bind="i18n: 'Ship Here'"></span> 
 
    </button> 
 
</div>

+0

如果您的問題得到解決,請讓我知道。 –

相關問題