【问题标题】:Number of countries for billing and Shipping to be different in MagentoMagento 中计费和运输的国家数量不同
【发布时间】:2012-07-19 07:06:34
【问题描述】:

我想在送货地址中显示一些国家,在帐单地址中显示一些其他国家。 我遵循了here 提供的建议。但是这样做之后,我的州/省输入框没有出现。 像这样->

【问题讨论】:

  • 在 1.7.0.2 上为我工作您使用的是什么版本?您确定您没有更改其他代码吗?这不应该发生。替换原始代码,您可能仍然会丢失一个框...

标签: magento


【解决方案1】:

查看 (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>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-06-12
    • 1970-01-01
    • 2011-05-12
    • 1970-01-01
    • 1970-01-01
    • 2019-07-08
    • 1970-01-01
    • 2019-06-08
    相关资源
    最近更新 更多