Viewing 1 replies (of 1 total)
  • Plugin Author Adam Anderly

    (@anderly)

    In that case, you only need the second part of that help article (the “ss_wc_mailchimp_subscribe_merge_tags” filter) to send the type field.

    // tie into the WooCommerce MailChimp ‘ss_wc_mailchimp_subscribe_merge_tags’ action filter to add the MailChimp merge tag for Birthday
    function ss_wc_send_birthday_field_to_mailchimp( $merge_tags, $order_id, $email ) {
    // retrieve the birthday from the order meta/custom fields
    $birthday = get_post_meta( $order_id, ‘birthday’, true );

    // Add ‘BIRTHDAY’ merge variable to MailChimp call (change ‘BIRTHDAY’ to whatever your merge variable is called in MailChimp)
    $merge_tags[‘BIRTHDAY’] = $birthday;
    return $merge_tags;
    }
    add_filter( ‘ss_wc_mailchimp_subscribe_merge_tags’ , ‘ss_wc_send_birthday_field_to_mailchimp’, 10 , 3 );

Viewing 1 replies (of 1 total)
  • The topic ‘Need to send details with adress’ is closed to new replies.