• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

OrganicWeb

Mailchimp Training & Consulting

  • Home
  • Services
    • Mailchimp Training
    • Mailchimp Consulting
  • Free Tools
    • Mailchimp Tutorials on YouTube
    • Subject Line Generator
    • Marketing Ideas Generator
    • Map Maker for Email
    • WhatsApp Click to Chat Generator
    • Avoid Email Going to Spam
    • Email Link Generator
    • Is Mailchimp Down?
    • Marketing Facts and Stats
  • Content
    • Blog
    • Videos
  • Contact & About
    • Contact
    • About

Select 1 Mailchimp list with Magento MageMonkey

Image of Mailchimp logo.I’ve been doing quite a few large integrations with Ecommerce software and systems and Mailchimp. It really is quite awesome how customer segments can be targeted and marketed to using Mailchimp Ecommerce 360 and Autoresponders. As an example it’s possible to automatically send a marketing email to buyers of a specific product a certain amount of time after their purchase. This is especially useful is we know that the average person repurchases in a specific amount of time.

Extensions to integrate Magento and Mailchimp

An extension that is great for integrating Magento and Mailchimp is the MageMonkey extension. Magento is owned by ebay inc. and is typically used by medium and large sized online stores (they’re actually retiring Magento Go which is their small business Ecommerce hosted platform). Because of the amount of data that can pass between Magento and Mailchimp due to the size of the online stores, it’s important that extensions are reliable and that is definitely a strength of MageMonkey.

One issue I had recently was that, in the MageMonkey settings it’s possible to set a primary Mailchimp list to which customers may subscribe and additional Mailchimp lists. It isn’t possible however to only allow for customers to subscribe to a single list.  The client for whom I was setting up the integration is starting to use the power of Mailchimp segmentation so there is no need for customers to be able to subscribe to more than one list. Fortunately the developer of MageMonkey was extremely helpful in providing  PHP code change that allowed for no additional lists to be selected.

How to have only one list for Magento customers to select

To have the option to only have the primary list available (called General Subscription) and select a None value in the Additional Lists field add the following to line 46 of app – code – community – Ebizmarts – MageMonkey – Model – Config – Source – List.php

$lists []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- None ---'));

Just in case your line numbering is different then the final PHP of the file will look like

<?php

/**
 * Mailchimp lists source file
 *
 * @category   Ebizmarts
 * @package    Ebizmarts_MageMonkey
 * @author     Ebizmarts Team <info@ebizmarts.com>
 * @license    http://opensource.org/licenses/osl-3.0.php
 */

class Ebizmarts_MageMonkey_Model_System_Config_Source_List
{

	/**
	 * Lists for API key will be stored here
	 *
	 * @access protected
	 * @var array Email lists for given API key
	 */
	protected $_lists   = null;

	/**
	 * Load lists and store on class property
	 *
	 * @return void
	 */
	public function __construct()
	{
		if( is_null($this->_lists) ){
			$this->_lists = Mage::getSingleton('monkey/api')
							->lists();
		}
	}

    /**
     * Options getter
     *
     * @return array
     */
    public function toOptionArray()
    {
    	$lists = array();

    	if(is_array($this->_lists)){
			$lists []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- None ---'));
    		foreach($this->_lists['data'] as $list){
    			$lists []= array('value' => $list['id'], 'label' => $list['name'] . ' (' . $list['stats']['member_count'] . ' ' . Mage::helper('monkey')->__('members') . ')');
    		}

    	}else{
    		$lists []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- No data ---'));
    	}

        return $lists;
    }

}

If you need help in getting more from your Magento customer data then contact us.

Found this useful? Please share:

Related

  • More sales in 2 minutes a week with Mailchimp & eCommerce
  • What are the list limits in Mailchimp?
  • Learn How to Automatically Tag Ecommerce Customers in Mailchimp

Filed Under: Marketing

Watch Gary in action

Gary frequently adds Mailchimp instructional videos to his YouTube channel. Subscribe to keep updated.

→  Subscribe   ←

How to add an editable attachment to a Mailchimp campaign.

How to add, and send, coupon codes in Mailchimp.

Reader Interactions

Leave a Reply Cancel reply

You are here: Home / Marketing / Select 1 Mailchimp list with Magento MageMonkey

Primary Sidebar

Mailchimp write about my work

Read on Mailchimp.com

Learn from a Mailchimp Pro Partner

Signup to receive info about Gary's Mailchimp beginner and advanced classes.

Sign up

Gary on Australian National Radio

Changes are coming to the Australian Spam Act

Read Gary's article in SmartCompany

Meet Gary, Mailchimp Expert

Gary is a Mailchimp Expert and Partner. He delivers Mailchimp training and consulting services in Australia, New Zealand and Singapore. Gary presents at Mailchimp events and hosts the first, and only, Australian Mailchimp sponsored event. He is M.B.A. qualified from Henley Business School, U.K.

Contact Gary for your Mailchimp needs

Footer

Customer Rating

Mailchimp Pro Partners

Contact

Contact Gary for all your Mailchimp training, consulting and integration needs.

Contact Gary.

Copyright © 2022 · Sitemap · ABN: 40800872179 · Privacy Policy · Terms of Service