• Resolved taastrategies

    (@taastrategies)


    I’ve had WooCommerce installed and running for 6+- months with MailPoet and am trying get everything moved to MailChimp. I have everything established and working except for the integration with WooCommerce.

    I installed the MC recommended MailChimp for WooCommerce plugin and quickly ran into two issues which can not be handled by the plugin. I’ve installed the MailChimp for WordPress plugin. I’ve been through the knowledge base and docs and am unable to determine if this plug (free or paid version) will address the two issues, and if so how:

    1) My list has two Groups: Followers (for my blog) and Subscribers (for my paid newsletter). The WC process sells the subscription. I want to automatically add the new subscriber to the Subscriber Group … no check box or other interaction required as the interaction raises risk of something going wrong.

    2) The Subscriber has paid to become a Subscriber. I need to add the Subscriber to the Subscriber Group without confirmation.

    If the above can be handled, I have a question regarding my blog. I am successfully gathering emails from a widget using a MC embedded form with a code change which automatically adds blog emails to Group Followers (no check box) after completing the confirmation process. If I switch to MC for WP, can I accomplish the same thing?

    Thank you.

    Earl Adamy

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Lap

    (@lapzor)

    1. You can set the WooCommerce integration to explicit in our plugin. No checkbox, WooCommerce users will be added on checkout without any confirmation.

    Also, with ecommerce integration we can send product data to MailChimp, you can use that to make segments.

    2. I’m not sure what you mean with “blog emails” but most likely the answer is yes, our plugin can integrate with WordPress registration, wordpress comment form, and even most other contact forms by activating “custom integration” and adding a hidden field to any form that contains an email field to let our plugin know to catch that information and send it to MailChimp.

    Thread Starter taastrategies

    (@taastrategies)

    I have the basic blog email side working fine and it is adding emails to hidden group Followers. I have installed the WooCommerce integration implicit w/o double opt-in and it too is adding subscriber name and email to hidden group “Followers”.

    1) The MC list has 4 groups and the one I want WC customers added to is Group “Subscribers”. The setup did not give me the opportunity to specify a group?

    2) I want to transfer additional fields from WC to MC. I have used the KB article to construct the required “add_filter” code to be added to “functions.php”.

    add_filter( 'mc4wp_integration_woocommerce_data', function( $data ) { 
    	
    	// Grab MailChimp field values from the current request
    	$data['PHONE'] = sanitize_text_field( $_POST['billing_phone'] ); 	
    	$data['ADDRESS1'] = sanitize_text_field( $_POST['billing_address_1'] ); 	
    	$data['ADDRESS2'] = sanitize_text_field( $_POST['billing_address_2'] ); 	
    	$data['CITY'] = sanitize_text_field( $_POST['billing_city'] ); 	
    	$data['STATE'] = sanitize_text_field( $_POST['billing_state'] ); 	
    	$data['ZIP'] = sanitize_text_field( $_POST['billing_postcode'] ); 
    	$data['COUNTRY'] = sanitize_text_field( $_POST['billing_country'] ); 
    
    	// Return the fields so the plugin knows to send them to MailChimp
    	return $data; 
    });
    

    I’ve never modified a php file; however I find plugins/mailchimp-for-wp/includes/functions.php. Each code snippet in the file begins with with “function” so sticking the above code into the file seems out of place. Is this the correct file? Will the change survive future upgrades?

    Thank you.

    • This reply was modified 7 years, 10 months ago by taastrategies.
    Thread Starter taastrategies

    (@taastrategies)

    I am still awaiting a response for this ticket.

    Plugin Contributor Lap

    (@lapzor)

    I believe you made a new ticket with the same issue in the meantime? I will mark thisone as resolved and reply on the other thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘MailChimp integration with WooCommerce’ is closed to new replies.