php - How to add new custom field in Magento 1 customer address -


we have tried answer its working customer edit form, issue is,

we have used magestore onestepcheckout,

also have added

<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> 

also, have added,

'govt_id' => mage::helper('onestepcheckout')->__('govt id'), 

in position.php page

but, know while time of billing value of newly added govt_id not being saved.

for add new address field, need create new extension.

here, step-by-step guide add govt id in customer address: http://excellencemagentoblog.com/blog/2011/11/29/magento-adding-custom-field-to-customer-address/

hope helps you:)


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -