Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter baugh05

    (@baugh05)

    Thanks for the reply Adam! I am still receiving the error email using the following code:

    // tie into the WooCommerce MailChimp 'ss_wc_mailchimp_subscribe_merge_vars' action filter to modify the MailChimp merge vars
    function ss_wc_modify_mailchimp_merge_fields( $merge_vars, $order_id ) {
        // By default $merge_tags will look like array( 'FNAME' => 'Joe', 'LNAME' => 'Smith', 'EMAIL' => 'joe.smith@example.com' );
    
        // Retrieve the WooCommerce order
        $order = new WC_Order( $order_id );
      
      	// Get the order billing address
        $billing_address = $order->get_address( 'billing' );
    
        // Get the billing address state
        $state = $billing_address[ 'state' ];
      
      	// Get the billing address country
        $country = $billing_address[ 'country' ];
    
        // let's add a new 'STATE' merge field - NOTE: You'll need to change this to the actual name
        // of your merge field in MailChimp
        $merge_tags[ 'STATE' ] = $state;
    	$merge_tags[ 'COUNTRY' ] = $country;
      
        return $merge_tags;
    }
    add_filter( 'ss_wc_mailchimp_subscribe_merge_tags' , 'ss_wc_modify_mailchimp_merge_fields', 10 , 2 );

    Any suggestions on how I can fix the snippet to get billing address state and country fields to save to mail chimp?

    baugh05

    (@baugh05)

    I’m experiencing the same double icons on product page since updating to 4.0.2.

    Thank you johnnycastrup and Kenny!! Solved the caching problem.

    baugh05

    (@baugh05)

    I am having the same problem with the recent update. The plugin never makes it to link with Instagram. Was there a fix?

Viewing 4 replies - 1 through 4 (of 4 total)