I am using Magento 1.9.1

Here is my config.xml:

                    <title>Allow Everything</title>
                                            <title>vivasparser - All</title>

Here is my obsrerver:


class VivasIndustries_Smartparser__Model_Observer
   public function checkPound() {

    Mage::log("$NowTime has started autmated pound currency check rate of $PoundRate status check!", null, "PoundCurrency.log", true);  


    public function clearcartitems($observer)
        $data = $observer->getEvent()->getOrder();
        Mage::log("Order is placed",  null, "Order.log", true);
        Mage::log($data->debug(),  null, "Order.log", true);

However when i place an order there nothing happens. The log is not created. Where is my mistake and how can i fix it ?


Replace your class name

class VivasIndustries_Smartparser__Model_Observer


class VivasIndustries_Smartparser_Model_Observer

Your observer class name looks different than one in XML file, try to remove one not needed underscore. This is class name:


And this is used in XML file:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.