- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2020
10:05 PM
01-01-2020
10:05 PM
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.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020
12:30 AM
01-02-2020
12:30 AM
Hi @Aveeva
try following code.
Mage::log("$incrementid.'-'.$sku .'-'.$name.'-'. $price", null, 'merchant.log', true);
---
Problem Solved Click Accept as Solution!:Magento Community India Forum
Problem Solved Click Accept as Solution!:Magento Community India Forum
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020
12:30 AM
01-02-2020
12:30 AM
Hi @Aveeva
try following code.
Mage::log("$incrementid.'-'.$sku .'-'.$name.'-'. $price", null, 'merchant.log', true);
---
Problem Solved Click Accept as Solution!:Magento Community India Forum
Problem Solved Click Accept as Solution!:Magento Community India Forum
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2020
01:21 AM
01-02-2020
01:21 AM
Re: Magento - How to print foreach values?
@Mukesh Tiwari How to send observer values via mail to example@gmail.com