Skip to main content
added 70 characters in body
Source Link
7ochem
  • 7.6k
  • 14
  • 52
  • 80
public function sendEmail(Varien_Event_Observer $observer) {
    if(!Mage::registry('varien_event')){
          
        //your code here...

        Mage::register('varien_event',true);
            
    }
}

if(!Mage::registry('varien_event')){

your code here...

Mage::register('varien_event',true);

} }

The Bove code is working for me.

public function sendEmail(Varien_Event_Observer $observer) {

if(!Mage::registry('varien_event')){

your code here...

Mage::register('varien_event',true);

} }

The Bove code is working for me.

public function sendEmail(Varien_Event_Observer $observer) {
    if(!Mage::registry('varien_event')){
          
        //your code here...

        Mage::register('varien_event',true);
            
    }
}

The Bove code is working for me.

Source Link

public function sendEmail(Varien_Event_Observer $observer) {

if(!Mage::registry('varien_event')){

your code here...

Mage::register('varien_event',true);

} }

The Bove code is working for me.