I have a custom customer/address
attribute gmap_lat
which I would like to be included in the sales/order_address_collection
.
I would like to observe the customer_address_save_before
event, but it isn't dispatched and I'm not sure how to hook into the Observer:
magento\app\code\core\Mage\Customer\etc\config.xml:
422 <customer_address_save_before>
423 <observers>
424: <customer_address_before_save_viv_observer>
425 <class>customer/observer</class>
426 <method>beforeAddressSave</method>
427: </customer_address_before_save_viv_observer>
428 </observers>
429 </customer_address_save_before>
Should I make my own observer in addition to this one, or extend the customer/observer
or what? What is the best and fastest approach here?
** EDIT **:
By the way, this attribute is HIDDEN, installed in part by:
//Add attribute that will be used for Google Maps as a coordinate lat
$installer->addAttribute('customer_address', 'gmap_lat', array(
'type' => 'varchar',
'input' => 'hidden',
'visible' => false,
'required' => false,
'label' => 'GMap Latitude',
'user_defined' => 0,
'visible_on_front' => 0,
));
<fieldsets> <sales_copy_order_billing_address>...
should copy it assuming you add the filed to quote address