I am trying to create an event dispatcher in Magento (which should be called after a product gets added to cart).
What I\'ve done so far:
I Googled this and
In your config.xml the short name given to your blocks and models is crossdata. Yet the event uses the alias dispatcher/observer, you have not defined a name dispatcher. This probably needs to be crossdata/observer.
The Inchoo example calls it's module Inchoo_Dispatcher and the model is Inchoo_Dispatcher_Model_Observer. Your module is MyPackage_Crossdata which means the alias crossdata/observer would try to load MyPackage_Crossdata_Model_Observer. But your observer is erroneously called MyPackage_Crossdata_Dispatcher_Model_Observer.
If your pasted code is not showing here in Stack Overflow either indent it by four spaces or use the {} button to format it. That is the preferable way to show code.