0
我想在發貨地址中顯示一些國家的送貨地址和其他一些國家/地區。 我按照提供的建議here。但是做完之後,我的州/省輸入框沒有出現。 這樣的 - >在Magento中結算和發貨的國家數量不同
我想在發貨地址中顯示一些國家的送貨地址和其他一些國家/地區。 我按照提供的建議here。但是做完之後,我的州/省輸入框沒有出現。 這樣的 - >在Magento中結算和發貨的國家數量不同
看看線78在ISH(path_to_magento)\程序\設計\前臺\ DEFAULT(my_skin_name)\模板\結賬\ onepage \ shipping.phtml
,它應該是這樣的。也許你刪除了一些東西 -
<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>
適合我在1.7.0.2你使用什麼版本?你確定你沒有改變一些其他的代碼?這不應該發生。替換原來的代碼,你將仍然缺少一個盒子... – Jon 2012-12-19 13:58:57