I have used this brilliant website to build my own Magento module with an extra customer address field; http://silksoftware.com/magento-module-creator
Ive created a new customer address attribute called 'mycarmake'. I can see, edit and save the attribute in the admin panel, no problem.
However Im having more trouble adding it to the checkout. Ive added this field to app/design/default/TEMPLATE_NAME/persistent/checkout/onepage/billing.phtml but it wont save to the customer address record - can someone give me a pointer as to why it's not working?
<!-- add fields here -->
<li class="fields">
<div class="field">
<label for="billing:mycarmake"><?php echo $this->__('My Car Make') ?></label>
<div class="input-box">
<input type="text" id="billing[mycarmake]" name="billing[mycarmake]" value="<?php echo $this->htmlEscape($this->getAddress()->getMycarmake()) ?>" title="<?php echo $this->__('My Car Make') ?>" class="input-text" />
</div>
</div>
</li>
<!-- end add fields here -->
I have also added this to the etc/config.xml of my module;
</resources>
<fieldsets>
<sales_copy_order_billing_address>
<mycarmake><to_order>*</to_order></mycarmake>
</sales_copy_order_billing_address>
<sales_copy_order_shipping_address>
<mycarmake><to_order>*</to_order></mycarmake>
</sales_copy_order_shipping_address>
<sales_convert_quote_address>
<mycarmake><to_order_address>*</to_order_address><to_customer_address>*</to_customer_address></mycarmake>
</sales_convert_quote_address>
<sales_convert_order_address>
<mycarmake><to_quote_address>*</to_quote_address></mycarmake>
</sales_convert_order_address>
<customer_address>
<mycarmake><to_quote_address>*</to_quote_address></mycarmake>
</customer_address>
<checkout_onepage_billing>
<mycarmake><to_customer>*</to_customer></mycarmake>
</checkout_onepage_billing>
</fieldsets>