Hi, I spoke with another support member (Ivy) and he told me to bring this to Amin's attention.
I've been doing a metric ton of research on the MailChimp API and wrapping my mind around how to achieve a certain specific goal that my client is looking for.
Basically, MailChimp allows AutoResponders that happen on the basis of list segmentation. My goal is to send a MailChimp campaign that is specific to the product that is purchased by the customer of the WP eStore. My initial plan was to embed a hidden 'form' field in the WP eStore plugin that would pass the data relating to item_name / item_id to MailChimp as a custom field. After discussing it with the MailChimp API support team they have told me that this is a limited approach because MailChimp only allows for up to 30 merge fields and if my product database grew too large then this option would not scale.
So, I learned about the ecommAddOrder MailChimp API function http://www.mailchimp.com/api/1.2/ecommaddorder.func.php. This function is specifically for processing product / e-commerce related data to the MailChimp database.
What I need to know is if you can show me where in the WP eStore plugin I can find the various functions that pass data to MailChimp via the API. We need to get in there and add a call to the ecommAddOrder function and insert the product name & id from WP eStore as the arrays 'items($product_id,$product_name)' so that this can be passed to the MailChimp list. Their MCAPI.class.php automatically integrates with MailChimp's eCommerce 360 which extends the functionality of MailChimp to do product-specific (and many other variables) list segmentation.
So far I've found pieces of the relevant code in 'eStore_auto_responder_handler.php', 'paypal.php', 'eStore_post_payment_processing_helper.php',
Also, why was this code commented out in the current version? Isn't a MailChimp API key required to make the API Calls?
'
<!--
<tr valign="top"><td width="25%" align="left">
MailChimp API Key:
</td><td align="left">
<input name="eStore_chimp_api_key" type="text" size="50" value="<?php echo get_option('eStore_chimp_api_key'); ?>"/>
<i>The API Key of your MailChimp account (can be found under the "Account" tab). If you do not have the API Key then you can use the username and password option below.</i>
</td></tr>
<tr valign="top"><td width="25%" align="left">
Or
</td></tr>
-->'
Right now, the other MailChimp integration solutions are very limited, so if we can get this working it will add a VERY desirable functionality to the WP eStore plugin that should allow it to be listed as a "MailChimp Reccomended" plugin which I think would drive sales up!
Let me know... Thanks!
Brian