2015-04-02 29 views
0

我想在一個頁面結賬頁面中從結算信息處理欄刪除州/省的驗證。如何從一個頁面Magento結賬中刪除州/省的驗證?

我試過但無法做到這一點。請檢查代碼:

<div class="field"> 
         <label for="billing:region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label> 
         <div class="input-box"> 
          <input type="text" title="<?php echo $this->__('state') ?>" name="billing[region]" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" class="input-text stat<?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" id="billing:region" /> 
         </div> 
        </div> 

回答

3

試試這個:

轉到您的管理面板 - >系統 - >配置 - >常規 - >國家選項 - > 「國家需要」

和然後取消選擇您不想要州的國家。

(如果要隱藏完全不需要的國家/地區的狀態輸入,請將「顯示不需要的狀態」設置爲「否」。)

相關問題