I am developing a Magento extension that adds several custom attributes to the customer address. My goal is to rearrange the address input fields in the admin order form. When I change the sort order of the attributes, the arrangement changes, but only for the custom attributes. I.e. I cannot place input field for custom attribute before input field for a system attribute.
I've read the source code in
Mage_Customer_Model_Form but still cannot figure out how to do it.
Is this possible at all? If so, how do I achieve it?
Edit In my mysql4-install-0.1.0.php script, I use:
$this->addAttribute('customer_address', 'carrier_office_name', array( 'type' => 'int', 'input' => 'text', 'label' => 'Carrier office name', 'global' => 1, 'visible' => 1, 'sort_order' => 247, // example 'required' => 0, 'user_defined' => 1, 'visible_on_front' => 1 ));