Jump to content
aveeva

How to get the name of the triggered event?

Recommended Posts

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

Share this post


Link to post
Share on other sites
Posted (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 by ginerjm

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.