I have created an observer event on the customer_save_after
event. At this point I am able to get the new name. I am trying to also retrieve their default billing address. If possible bring them in as separate items like Address 1, Address 2, City, State, Zip code.
<?php
class Mage_Customerupdate_Model_Observer
{
public function logUpdate(Varien_Event_Observer $observer)
{
$customer = $observer->getEvent()->getCustomer();
$name = $customer->getName();
$billingaddress = $customer->getDefaultBillingAddress();
$customerId = $customer->getId();
$customerObject=Mage::getModel('customer/customer')->load($customerId);
Mage::log("{$name} ({$billingaddress}) ({$customerid}) updated", null, 'customerupdate.log', true);
}
}
?>
In order to get an address change maybe I have to add another event to capture that. I don't really know
At this point all I get in my results are "NAME () (ID#) updated"