Adam Anderly
Forum Replies Created
-
Forum: Reviews
In reply to: [WP WooCommerce Mailchimp] Works well so farThanks for the feedback. Please let us know how it works for you.
Forum: Reviews
In reply to: [WP WooCommerce Mailchimp] Works somewhatThe issue you noted with version 1.3 was fixed in 1.3.1. Let me know if you are still having any issues.
Are you still getting this error? This should be fixed as of version 1.3.1.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Cart Page not displaying in Woocommerce 1.2.6Are you still having this problem with the current version of the plugin (1.3.1)?
Marking this as resolved as it should be corrected as of version 1.3.1
Are you still have this issue? Have you tried the latest version?
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] WooCommerce MailChimp & MailChimp for WordPress?They are separate plugins and I don’t have any planned integration with that plugin. However, you could certainly use them in combination if they don’t have any conflicts. I have not tested this, however.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] admin-ajax.phpCould you provide some specifics? I’ll take a look if you can provide some details of the issues.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Godaddy Email Marketing Integration?As the name implies, this plugin is only designed for integration with MailChimp.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Conditional groupsThis is a feature I have planned for the pro version, but I do not yet have an estimated release date for the pro version.
Thanks,
Adam
A better solution is to provide a priority on your add_action call. You could add yours with a priority of 20.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Warning: Invalid argument supplied for foreach()That line of code is what loads your mailchimp lists. Do you have any lists created in your MailChimp account?
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] (270) "2" is not a valid Interest GroupAll,
My apologies for this issue. I just published version 1.3.1 of the plugin which fixes this bug introduced in version 1.3. It was a simply transposition of parameters on an apply_filters call. I hadn’t caught it because I was intercepting the bug with an add_filter call I was using to test it and that was hiding the problem on my test site. I have corrected this and tested it with and without the add_filter hook. It now behaves just as it did in 1.2.6. Please update and let me know if you have any issues.
Thanks,
Adam
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] (270) "2" is not a valid Interest GroupSorry for the inconvenience.
Can both of you post what you have in the plugin settings for Group Name and Groups?
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Add another field?Sorry for the delay in getting this out. I just published version 1.3 of the plugin which was needed before I could send you a code sample.
This should do it:
// First we add the new birthday field to the checkout fields function ss_wc_add_birthday_field( $checkout_fields ) { $opt_in_checkbox_display_location = 'billing'; $field_id = 'birthday'; $field_name = __( 'Birthday', 'ss_wc_mailchimp' ); $checkout_fields[$opt_in_checkbox_display_location][$field_id] = array( 'type' => 'text', 'label' => esc_attr( $field_name ), 'placeholder' => 'mm/dd' ); return $checkout_fields; } add_filter( 'woocommerce_checkout_fields', 'ss_wc_add_birthday_field' ); // Make birthday a date picker mm/dd field function ss_wc_add_checkout_field_datepicker() { if ( is_checkout() ) { $js = 'jQuery( "#birthday" ).css("width","125px").datepicker({ changeMonth: true, changeYear: true, yearRange:"-100:+0", dateFormat: "mm/dd" });'; // Check if WC 2.1+ if ( defined( 'WC_VERSION' ) && WC_VERSION ) { wc_enqueue_js( $js ); } else { global $woocommerce; $woocommerce->add_inline_js( $js ); } } } add_filter( 'wp_footer' , 'ss_wc_add_checkout_field_datepicker' ); // Save the birthday field with the order function ss_wc_save_birthday_field( $order_id ) { $birthday = isset( $_POST['birthday'] ) ? $_POST['birthday'] : null; update_post_meta( $order_id, 'birthday', $birthday ); } add_action( 'woocommerce_checkout_update_order_meta', 'ss_wc_save_birthday_field' ); // tie into the WooCommerce MailChimp 'ss_wc_mailchimp_subscribe_merge_vars' action filter to add the MailChimp merge var for Birthday function ss_wc_send_birthday_field_to_mailchimp( $order_id, $merge_vars ) { // 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_vars['BIRTHDAY'] = $birthday; return $merge_vars; } add_filter( 'ss_wc_mailchimp_subscribe_merge_vars' , 'ss_wc_send_birthday_field_to_mailchimp', 10 , 2 );
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]