OpenCart>结帐>地址下拉菜单不会显示完整地址

时间:2018-06-03 22:22:22

标签: opencart

OpenCart结帐时的送货地址和结算地址下拉菜单(现有地址,已登录的用户)不会显示公司名称,地址第2行和邮政编码等项目。事实上,在我看来,可选/非必填字段不会显示在下拉列表中。

我该如何解决?有这个设置吗?

1 个答案:

答案 0 :(得分:0)

您需要转到*ayment_address.tpl & shipping_address.tpl

转到:../public_html/catalog/view/theme/[default]/template/checkout/payment_address.tpl/shipping_address.tpl

查找并替换:

<?php echo $address['firstname']; ?> <?php echo $address['lastname']; ?>, <?php echo $address['address_1']; ?>, <?php echo $address['city']; ?>, <?php echo $address['zone']; ?>, <?php echo $address['country']; ?>

使用:

<?php echo $address['firstname']; ?> <?php echo $address['lastname']; ?>, <?php echo $address['company']; ?>, <?php echo $address['address_1']; ?>, <?php echo $address['address_2']; ?>, <?php echo $address['city']; ?>, <?php echo $address['zone']; ?>, <?php echo $address['country']; ?>, <?php echo $address['postcode']; ?>

这在Opencart 2.0.1.1中对我有用