Skip to content

Commit

Permalink
Problem with mixed emails sent when made simultaneously on checkout s…
Browse files Browse the repository at this point in the history
…olved. closes #60
  • Loading branch information
Santiagoebizmarts committed Sep 13, 2016
1 parent 1f4fc49 commit dadcce4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions app/code/community/Ebizmarts/MailChimp/Model/Email/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,8 @@ public function getMail($storeId)
if (!Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::MANDRILL_ACTIVE, $storeId)) {
return parent::getMail();
}
if ($this->_mail) {
return $this->_mail;
} else {
Mage::helper('mailchimp/mandrill')->log("store: $storeId API: " . Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::MANDRILL_APIKEY, $storeId));
$this->_mail = new Mandrill_Message(Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::MANDRILL_APIKEY, $storeId));
return $this->_mail;
}
Mage::helper('mailchimp/mandrill')->log("store: $storeId API: " . Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::MANDRILL_APIKEY, $storeId));
$this->_mail = new Mandrill_Message(Mage::getStoreConfig(Ebizmarts_MailChimp_Model_Config::MANDRILL_APIKEY, $storeId));
return $this->_mail;
}
}
4 changes: 2 additions & 2 deletions app/code/community/Ebizmarts/MailChimp/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<config>
<modules>
<Ebizmarts_MailChimp>
<version>1.1.0</version>
<version>1.1.1</version>
</Ebizmarts_MailChimp>
<Ebizmarts_Mandrill>
<version>1.1.0</version>
<version>1.1.1</version>
</Ebizmarts_Mandrill>
</modules>
<global>
Expand Down

0 comments on commit dadcce4

Please sign in to comment.