0
是否可以将默认送货地址下拉选择放到标题中? 我需要有可能在每个页面上设置默认送货地址。
我的Magento ver 1.9Magento在标题中选择客户默认送货地址
是否可以将默认送货地址下拉选择放到标题中? 我需要有可能在每个页面上设置默认送货地址。
我的Magento ver 1.9Magento在标题中选择客户默认送货地址
这里的实现。
在header.phtml中。下面的代码
<div class="customer-shipping-address">
<?php echo $this->getChildHtml('header_shipping'); ?>
</div>
拷贝在下面的代码page.xml下副本 “报头” 块
<block type="checkout/onepage_shipping" name="page.header.shipping" as="header_shipping" template="page/html/shipping.phtml"/>
的 “页面/ HTML” 下创建shipping.phtml和写下面的代码。
<ul class="form-list">
<?php if ($this->customerHasAddresses()): ?>
<li class="wide">
<div class="input-box">
<?php echo $this->getAddressesHtmlSelect('shipping') ?>
</div>
</li>
<?php endif ?>
</ul>
是否要获取当前登录的客户的默认送货地址我是正确的? –