aveeva Posted August 16, 2019 Share Posted August 16, 2019 How to self check what event i am using, my event : <checkout_cart_product_add_after> how to print, i tried : $event = $observer->getEvent()->getName(); Mage::log($event, null, 'logfile.log'); its not printing Quote Link to comment https://forums.phpfreaks.com/topic/309097-how-to-get-the-name-of-the-triggered-event/ Share on other sites More sharing options...
ginerjm Posted August 16, 2019 Share Posted August 16, 2019 (edited) You have to be kidding. This post is meaningless to almost anyone who reads it. I understand that there is a language problem but you don't even attempt to make clear what you are using, what you are doing nor what any of your code even looks like. Questions: What is "getevent()"? What is "Mage"? Where is this printing taking place? What is "checkout_cart_product_add_after"? A function you wrote? Part of a package you are trying to learn about? Edited August 16, 2019 by ginerjm Quote Link to comment https://forums.phpfreaks.com/topic/309097-how-to-get-the-name-of-the-triggered-event/#findComment-1569043 Share on other sites More sharing options...
Barand Posted August 16, 2019 Share Posted August 16, 2019 Perhaps you can make use of the get_class() function 1 Quote Link to comment https://forums.phpfreaks.com/topic/309097-how-to-get-the-name-of-the-triggered-event/#findComment-1569044 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.