Skip to content

Commit

Permalink
Merge pull request #710 from mailchimp/changes-requested
Browse files Browse the repository at this point in the history
Changes requested
  • Loading branch information
Santiagoebizmarts authored May 11, 2018
2 parents 4329dcb + c96f3d8 commit b366b45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function createMailChimpStore($mailChimpStoreId, $listId = null, $scopeId
} catch (MailChimp_Error $e) {
$adminSession = Mage::getSingleton('adminhtml/session');
if (strstr($e->getFriendlyMessage(), 'A store with the domain')) {
$errorMessage = $helper->__("A MailChimp store with the same domain already exists in this account. You need to have a different URLs for each scope you set up the ecommerce data.");
$errorMessage = $helper->__("A MailChimp store with the same domain already exists in this account. You need to have a different URLs for each scope you set up the ecommerce data. Possible solutions <a href='https://docs.magento.com/m1/ce/user_guide/stores/store-urls.html'>HERE</a>");
$adminSession->addError($errorMessage);
}
$helper->logError($e->getFriendlyMessage());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct()
$totalCarts = $api->ecommerce->carts->getAll($mcStoreId, 'total_items');
$this->_accountDetails['total_carts'] = $totalCarts['total_items'];
} catch (MailChimp_Error $e) {
if ($helper->isEcommerceEnabled($scopeArray['scope_id'], $scopeArray['scope'])) {
if ($helper->isEcomSyncDataEnabled($scopeArray['scope_id'], $scopeArray['scope'])) {
$helper->deleteLocalMCStoreData($mcStoreId, $scopeArray['scope_id'], $scopeArray['scope']);
if ($listId) {
$helper->createStore($listId, $scopeArray['scope_id'], $scopeArray['scope']);
Expand Down

0 comments on commit b366b45

Please sign in to comment.