0

我们已经尝试过这个答案,它对客户编辑表单很有用,但现在的问题是,

我们使用了 magestore onestepcheckout,

我们还添加了

<li>
                <div class="one-field">
                    <input onkeyup="validateElement(this.id)" type="text"
                               title="<?php echo Mage::helper('core')->quoteEscape($this->__('Govt ID')) ?>"
                               name="billing[govt_id]" id="billing:govt_id"
                               value="380051"
                               class="input-text"
                               required/>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                    <label class="required" for="billing:govt_id"><?php echo $this->__('Govt ID') ?> <em>*</em></label>
                </div>
            </li>

此外,我们还添加了,

'govt_id' => Mage::helper('onestepcheckout')->__('Govt Id'),

position.php页面中

但是,知道这个新添加的计费值的时间govt_id没有被保存。

4

1 回答 1

0

要添加新地址字段,您需要创建一个新的扩展。

Govt Id在这里,添加客户地址的分步指南:http: //excellencemagentoblog.com/blog/2011/11/29/magento-adding-custom-field-to-customer-address/

希望对你有帮助:)

于 2017-09-19T01:17:11.970 回答