0

配送先住所にいくつかの国を表示し、請求先住所に他のいくつかの国を表示したいと考えています。ここで提供されている提案に従いましたが、それを行った後、州/都道府県の入力ボックスが表示されません。このように - >

ここに画像の説明を入力

4

1 に答える 1

0

(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>
于 2012-12-19T14:01:34.413 に答える