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

OrganicWeb

Marketing Strategy Facilitators & Mailchimp Pro Partners

  • Home
  • Marketing Strategy & Planning
  • Mailchimp Services
    • Service Catalogue
    • Mailchimp Improvement Audit
    • Shopify & WooCommerce Marketing
    • Mailchimp Online Courses (on Udemy)
    • Mailchimp Live Classes
    • Mailchimp Corporate/Team Training
    • Consulting
  • Free Tools
    • 5 day Mailchimp marketing boost
    • Map maker for email
    • Is Mailchimp down?
    • Marketing facts and stats.
  • Content
    • Blog
    • Videos
  • Contact & About
You are here: Home / Marketing / Select 1 Mailchimp list with Magento MageMonkey

Select 1 Mailchimp list with Magento MageMonkey

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:

Filed Under: Marketing

Watch Gary in action

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

→  Subscribe   ←

How to create a lead-capture form with file download.

How to target your most engaged Mailchimp contacts.

Reader Interactions

Leave a Reply Cancel reply

Primary Sidebar

Ready? Boost your marketing …

Get Started

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

Mailchimp Video Tutorials

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 ratings

Mailchimp pro partners

Contact

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

Contact Gary.

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