Ebizmarts - MageMonkey MailChimp Extension

Extension Name

Ebizmarts - MageMonkey MailChimp Extension

Developer

Ebizmarts

Versions

Ebizmarts_MageMonkey 1.1.19
MageRewards 1.7.9.4

Issue Status

Resolved with modifications.

Problem

Front end: No points earned for Newsletter if Mailchimp was used and subscription needs to confirm.

Resolution

1. Open app/code/community/Ebizmarts/MageMonkey/Model/Observer.php

Find

 if( TRUE === $subscriber->getIsStatusChanged() ){
			if($isOnMailChimp == 1){
				return $observer;
			}
			if($isConfirmNeed){
			$subscriber->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED);
			Mage::getSingleton('core/session')->addSuccess(Mage::helper('monkey')->__('Confirmation request has been sent.'));
			}
			Mage::getSingleton('monkey/api')->listSubscribe($listId, $email, $this->_mergeVars($subscriber), 'html', $isConfirmNeed);
	}
	

Replace with

 if( TRUE === $subscriber->getIsStatusChanged() ){
			if($isOnMailChimp == 1){
				return $observer;
			}
			if($isConfirmNeed){
			$subscriber->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED);
			Mage::getSingleton('core/session')->addSuccess(Mage::helper('monkey')->__('Confirmation request has been sent.'));
			Mage::getModel('rewards/newsletter_subscription_observer')->initReward($subscriber);
			}
			Mage::getSingleton('monkey/api')->listSubscribe($listId, $email, $this->_mergeVars($subscriber), 'html', $isConfirmNeed);
}
	

5. Upload new and modified files to your server.

6. Clear your cache.


Please keep in mind that implementing any modifications to your MageRewards core code does void your support agreement because you're adding dependency to the other module.

Still need help? Get Help Get Help