I need only
customer_id, product_id, customer_email
I am using
<sales_order_place_after>
<observers>
<checkout_submit_all_after_handler>
<type>model</type>
<class>amxnotif/observer</class>
<method>getAlertFrontend</method>
</checkout_submit_all_after_handler>
</observers>
</sales_order_place_after>
In Observer.php
public function getAlertFrontend(Varien_Event_Observer $observer)
{
Mage::log('we are in cataloginventory frontend log start ');
$event = $observer->getEvent();
$order = $event->getOrder();
$orderId = $order->getIncrementId(); // working
$customer = $order->getCustomer();
$productId = $order->getProductId();
$customer_id = $order->getCustomerId();
$orderItem = $order->getItem();
Mage::log("order_data start");
Mage::log( $order->getEmail() );
Mage::log( $orderItem );
Mage::log( $customer_id );
Mage::log("order_data ends");
$customerData = Mage::getModel('customer/customer')->load($customer_id);
$customerName = $customerData->getName();
Mage::log("customer_data start");
Mage::log( $customerName );
Mage::log( $customerData );
Mage::log("customer_data ends");
Mage::log(sprintf('Order Id :: %s ,Product Id :: %s Customer Id :: %s ',$orderId, $productId, $customer_id));
Mage::log('we are in cataloginventory frontend log ends ');
}
But i am only getting DEBUG (7): Order Id:: 100000144, Product Id:: Customer Id::