• Resolved gevcen

    (@gevcen)


    Dear,

    I noticed that Mailchimp for WordPress is already adding a checkbox “subscribe to newsletter” in checkout & account pages.

    Then Mailchimp for WooCommerce is AGAIN adding exactly the same. Why is this? Why don’t you integrate the later in the former? It’s a non-sense to have a duplicate checkbox.

    By the way, the one from Mailchimp for WordPress is MUCH BETTER integrated in the page than the one from Mailchimp for WooCommerce. Fix this!

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support khungate

    (@khungate)

    Hi @gevcen, thanks for reaching out. If you’d like to disable our checkbox display you can easily toggle that particular setting by going to the plugin settings -> Audience Settings -> click Optional Audience Settings (at the bottom) -> choose “Hidden, unchecked by default”.

    Hope that helps, let us know if you have any other questions. Please note, the best way to reach us is over at the GitHub plugin page. From there, you can receive direct responses from the development team, log new issues, download the latest version, and track existing support tickets.

    Thread Starter gevcen

    (@gevcen)

    This doesn’t answer to my problem.

    Why Mailchimp ads 1 checkbox “subscribe” and then Mailchimp for WooCommerce ads another identical checkbox?

    It’s a complete non-sense for users to have 2 identical checkboxes ?!

    Which one of the checkboxes is the one that defines whether the client is a SUBSCRIBED or NON-SUBSCRIBED in mailchimp audience ? Is it the one from Mailchimp or from Mailchimp for WooCommerce ?

    Thanks

    Any updates to a solution? I’m having the exact same issue. I have my Mailchimp For WooCommerce subscribe checkbox on Account/Checkout pages etc., and right under is the “Subscribe to our newsletter” checkbox. Duplicates for every page I have the subscribe checkbox setup.

    Thread Starter gevcen

    (@gevcen)

    Yes it’s a non-sense for 2 complementary plugins to ad twice the same checkbox everywhere, there is no sense at all … we should have only 1 for both

    what’s the support’s answer?

    Plugin Author ryanhungate

    (@ryanhungate)

    @gevcen @basicsbyhill sorry that I missed this question – this is actually a really good one and I’m glad you brought it up.

    The short answer is that these plugins don’t have any relation at all. Even though they both say the word Mailchimp, they’re not the same and the features from both plugins are completely separate, and most likely have a little overlap. That being said I would like to give some input on how you can resolve this.

    This wiki page shows you how you can display the checkbox in a custom manner, but in all reality this should probably be implemented as a HIDDEN input and then add a javascript snippet to sync the two checkboxes.

    
    function custom_hide_mailchimp_checkbox() {
        return '<input id="mailchimp_newsletter_checkbox" type="hidden" value="" name="mailchimp_woocommerce_newsletter"/>';
    }
    
    add_filter('mailchimp_woocommerce_newsletter_field', 'custom_hide_mailchimp_checkbox’);
    

    Once you have this as a “hidden” input on your page, you can then apply a javascript listener to sync the two checkboxes.

    Assuming you have jQuery on your site – this is a simple example that would allow you to use the “other plugin’s” checkbox, hide the Mailchimp checkbox, but then still save the data that our plugin is relying on to properly submit subscriber statuses.

    
    $("#the_other_checkbox_id").change(function(e) {
        $("#mailchimp_newsletter_checkbox").prop('checked', e.target.checked);
    });
    

    I hope this helps. Feel free to reach back out if you have any other questions on this. Be glad to help ??

    Thread Starter gevcen

    (@gevcen)

    Dear,

    I’m trying to implement your solution but I have a question.

    Instead of adding the first custom php code, isn’t it better to simply switch the setting in Mailchimp > WooCommerce > Audience Settings > Optional Audience Settings, and there select “Hidden, unchecked by default” ?

    Thanks

    Plugin Author ryanhungate

    (@ryanhungate)

    @gevcen The purpose of this code was to show you how to use another checkbox – but then make sure that the value that OUR plugin is looking for will be set accurately.

    If you just turn the hidden – unchecked by default on, it will not set anything at all on the page for our plugin to use. You’ll have to commit to making sure that mailchimp_woocommerce_newsletter is set to 1 for the user in order for our plugin to recognize this as being subscribed.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate “subscribe to newsletter”’ is closed to new replies.