【发布时间】:2012-07-19 07:06:34
【问题描述】:
我想在送货地址中显示一些国家,在帐单地址中显示一些其他国家。 我遵循了here 提供的建议。但是这样做之后,我的州/省输入框没有出现。 像这样->
【问题讨论】:
-
在 1.7.0.2 上为我工作您使用的是什么版本?您确定您没有更改其他代码吗?这不应该发生。替换原始代码,您可能仍然会丢失一个框...
标签: magento
我想在送货地址中显示一些国家,在帐单地址中显示一些其他国家。 我遵循了here 提供的建议。但是这样做之后,我的州/省输入框没有出现。 像这样->
【问题讨论】:
标签: magento
查看 (path_to_magento)\app\design\frontend\default(my_skin_name)\template\checkout\onepage\shipping.phtml 中的第 78 行
它应该是这样的。也许你删除了一些东西 -
<div class="field">
<label for="shipping:region" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
<div class="input-box">
<select id="shipping:region_id" name="shipping[region_id]" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
</select>
<script type="text/javascript">
//<![CDATA[
$('shipping:region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
//]]>
</script>
<input type="text" id="shipping:region" name="shipping[region]" value="<?php echo $this->htmlEscape($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text" style="display:none;" />
</div>
</div>
【讨论】: