Skip to main content
added 47 characters in body
Source Link
Keyul Shah
  • 7.2k
  • 13
  • 38
  • 60

rather then you die you Mage::log('testing');

Follow the below code

<?php
class Npm_Commission_Model_Observer extends Varien_Event_Observer
{
    public function saveorder($observer)
    {
        Mage::log('sales_order_place_after');
        $params = Mage::app()->getFrontController()->getRequest()->getParams();
        Mage::log(print_r($params,true));
    }

Make you have enable log in Magento. system >> Configuration >> Developer >> Log.

To check your data var/log.

rather then you die you Mage::log('testing');

Follow the below code

<?php
class Npm_Commission_Model_Observer extends Varien_Event_Observer
{
    public function saveorder($observer)
    {
        Mage::log('sales_order_place_after');
        $params = Mage::app()->getFrontController()->getRequest()->getParams();
        Mage::log(print_r($params,true));
    }

Make you have enable log in Magento.

To check your data var/log.

rather then you die you Mage::log('testing');

Follow the below code

<?php
class Npm_Commission_Model_Observer extends Varien_Event_Observer
{
    public function saveorder($observer)
    {
        Mage::log('sales_order_place_after');
        $params = Mage::app()->getFrontController()->getRequest()->getParams();
        Mage::log(print_r($params,true));
    }

Make you have enable log in Magento. system >> Configuration >> Developer >> Log.

To check your data var/log.

Source Link
Keyul Shah
  • 7.2k
  • 13
  • 38
  • 60

rather then you die you Mage::log('testing');

Follow the below code

<?php
class Npm_Commission_Model_Observer extends Varien_Event_Observer
{
    public function saveorder($observer)
    {
        Mage::log('sales_order_place_after');
        $params = Mage::app()->getFrontController()->getRequest()->getParams();
        Mage::log(print_r($params,true));
    }

Make you have enable log in Magento.

To check your data var/log.