Code :
<?php class Gta_MerchantNotification_Model_Observer { public function merchantremainder($Observer) { $order = $Observer->getEvent()->getOrder(); $order_details = $order->getAllVisibleItems(); foreach ($order_details as $list) { $incrementid = $list->getIncrementId(); $sku = $list->getsku(); $name = $list->getName(); $price = $list->getPrice(); } Mage::log($list,null,'merchant.log',true); } } ?>
How to print value in Mage::log like, incrementid, sku, name, price
Solved! Go to Solution.
Hi @Aveeva
try following code.
Mage::log("$incrementid.'-'.$sku .'-'.$name.'-'. $price", null, 'merchant.log', true);
Hi @Aveeva
try following code.
Mage::log("$incrementid.'-'.$sku .'-'.$name.'-'. $price", null, 'merchant.log', true);
@Mukesh Tiwari How to send observer values via mail to example@gmail.com