Call-back icon  Sales: Call 800.374.8146 (N America)|757.278.0920 (International)

Magento

Open Source eCommerce Evolved

Magento Forum

   
Page 2 of 2
Event dispatch requests
 
winans_fred
Sr. Member
 
Avatar
Total Posts:  79
Joined:  2007-09-06
Easthampton, MA
 

Good point, smckeon.  I wasn’t considering it from that angle but that is quite true.  Thanks for the input!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Beecoop Cooperative
Jr. Member
 
Total Posts:  1
Joined:  2008-05-13
 

Would be good to have these two events dispatched:

Mage::dispatchEvent('newsletter_customer_unsubscribed', array('customer'=>$customer'email'=>$email)); 
Mage::dispatchEvent('newsletter_customer_subscribed', array('customer'=>$customer'email'=>$email));

 
Magento Community Magento Community
Magento Community
Magento Community
 
jshirkey
Jr. Member
 
Total Posts:  11
Joined:  2008-06-20
Charlottesville, VA
 

I would like to see the following event dispatch added to the core code in the dispatch() method of Mage_Core_Controller_Varien_Front:

public function dispatch()
{
    
...
    while (!
$request->isDispatched() && $i++<100{
        
foreach ($this->_routers as $router{
            
            Mage
::dispatchEvent('controller_front_dispatch_router_match_before', array('router'=>$router));
            
            if (
$router->match($this->getRequest())) {
                
break;
            
}
        }
    }
    
if ($i>100{
        Mage
::throwException('Front controller reached 100 router match iterations');
    
}
     
...
 
}

 
Magento Community Magento Community
Magento Community
Magento Community
 
vinai-kung
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-04-04
Heidelberg, Germany
 

This event would come in very hand right now:

Mage::dispatchEvent('catalog_product_collection_load_before', array('collection' => $collection));

This would provide the possibility to add filters to the collection before it is loaded.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2
 
Sales: Call 800.374.8146 (North America) 757.278.0920 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
33727 users|347 users currently online|74738 forum posts