Upgrade From Magento Magemonkey to Mailchimp
Feb 21, 2017 · 1 minute readCategory: magento
Upgrading from MageMonkey to MailChimp unfortunately isn’t as simple as just installing the new module.
You need to purge the old module completely using:
#!/usr/bin/env bash
# Remove all MageMonkey files (taken from https://www.dropbox.com/s/fx9p0w7hqeb0zwi/uninstall_magemonkey.sh?dl=0)
rm app/etc/modules/Ebizmarts_MageMonkey.xml
rm app/etc/modules/Ebizmarts_Mandrill.xml
rm app/etc/modules/Ebizmarts_Autoresponder.xml
rm app/etc/modules/Ebizmarts_AbandonedCart.xml
rm app/etc/modules/Ebizmarts_SweetMonkey.xml
rm -r app/locale/nl_NL/template/email/ebizmarts
rm app/locale/nl_NL/Ebizmarts_MageMonkey.csv
rm app/locale/nl_NL/Ebizmarts_SweetMonkey.csv
rm app/locale/nl_NL/Ebizmarts_AbandonedCart.csv
rm app/locale/en_US/Ebizmarts_Mandrill.csv
rm -r app/locale/en_US/template/email/ebizmarts
rm app/locale/en_US/Ebizmarts_Autoresponder.csv
rm app/locale/en_US/Ebizmarts_MageMonkey.csv
rm app/locale/en_US/Ebizmarts_SweetMonkey.csv
rm app/locale/en_US/Ebizmarts_AbandonedCart.csv
rm -r app/code/community/Ebizmarts
rm app/design/adminhtml/default/default/layout/magemonkey.xml
rm -r app/design/adminhtml/default/default/layout/ebizmarts
rm -r app/design/adminhtml/default/default/template/ebizmarts
rm -r app/design/adminhtml/default/default/template/magemonkey
rm -r app/design/adminhtml/default/default/template/sweetmonkey
rm app/design/frontend/base/default/layout/magemonkey.xml
rm -r app/design/frontend/base/default/layout/ebizmarts
rm -r app/design/frontend/base/default/template/ebizmarts
rm -r app/design/frontend/base/default/template/magemonkey
rm -r app/design/frontend/base/default/template/ebizmarts_abandonedcart
rm -r js/ebizmarts
rm -r skin/adminhtml/default/default/abandonedcart
rm -r skin/adminhtml/default/default/ebizmarts
rm -r skin/adminhtml/default/default/magemonkey
rm -r skin/frontend/base/default/magemonkey
rm -r lib/Mandrill
This was taken from uninstall_magemonkey.sh.
You also need to drop the following tables.
#!/usr/bin/env bash
# Drop all MageMonkey tables (taken from https://ebizmarts.com/forums/topics/view/19381#19491)
host='';
user='';
password='';
dbname='';
declare -a tables=(
"magemonkey_mails_sent"
"ebizmarts_abandonedcart_popup"
"ebizmarts_abandonedcart_abtesting"
"ebizmarts_autoresponder_unsubscribe"
"ebizmarts_autoresponder_visited"
"ebizmarts_autoresponder_review"
"ebizmarts_autoresponder_backtostock"
"ebizmarts_autoresponder_backtostock_alert"
"magemonkey_api_debug"
"magemonkey_ecommerce360"
"magemonkey_bulksync_export"
"magemonkey_bulksync_import"
"magemonkey_async_subscribers"
"magemonkey_async_orders"
"magemonkey_last_order"
);
for table in "${tables[@]}"
do
mysql -h $host -u $user --password=$password $dbname -e "drop table $table";
done
These tables were taken from the following Ebizmarts post.
Once you’ve done this you can install the new module by following the instructions contained within it’s README.md.