I am using Enterprise, so I added some new Customer Address Attributes.
<?php $addressAttributes = $this->getChild('customer_form_billing_address_user_defined_attributes');?>
<?php if ($addressAttributes): ?>
<?php $addressAttributes->setEntity($this->getAddress())->setEntityType('customer_address');?>
<?php $addressAttributes->setFieldIdFormat('billing:%1$s')->setFieldNameFormat('billing[%1$s]');?>
<?php echo $addressAttributes->setExcludeFileAttributes(true)->setShowContainer(false)->toHtml()?>
<?php endif;?>
This is the code from biling.phtml which renders my new fields. I was expecting that this would work by default..to save the data from form in database for my new fields. In sales_flat_order_address I don't see anything related to my fields. Am I missing something? Should I do something custom to save the fields and then to be displayed in view order order?