• Resolved johnegg

    (@johnegg)


    Hi Guys

    I tried adding some code for a custom integration on checkout so users can select a group in Mailchimp but its not adding them to the groups.

    here is the code im using:

    <!– Subscription Checkbox –>
    <p class=”mc4wp-checkbox mc4wp-checkbox-woocommerce”>
    <label>
    <?php //<input type=”checkbox” name=”_mc4wp_subscribe_woocommerce” value=”1″> ?>

    <span><input type=”checkbox” name=”mc4wp-subscribe” value=”1″ /> I am interested in receiving tips on improving collaboration in my office or school or I want to stay up to date on modern design trends.
    </span>
    </label>
    </p>

    <!– Interest Groups –>
    <p class=”form-row form-row ” id=”_mc4wp_subscribe_woocommerce_checkout_field”>
    <span>What would you like to hear more on? You can unsubscribe at any time. Choose what type of news you would like to receive below.</span><br />

    <select id = “myList”>
    <option name=”mc4wp-INTERESTS[b92826806c][]” value=”471c05a135″>Business</option>
    <option name=”mc4wp-INTERESTS[b92826806c][]” value=”0e440ad04f”>Education</option>
    <option name=”mc4wp-INTERESTS[b92826806c][]” value=”2af71706ba”>Designers & Contractors</option>
    <option name=”mc4wp-INTERESTS[b92826806c][]” value=”83b2914c8c”>Other</option>
    </select>

    </p>

    Thanks
    John

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey John,

    Thanks for reaching out to us.

    Can you please share a link to the checkout page on your website?

    Also, can you please go to the “MC4WP > Others” menu in your WordPress admin and share with us the errors listed there?

    Thread Starter johnegg

    (@johnegg)

    [2020-02-05 14:33:42] WARNING: Custom > eggd******@gm***.com is already subscribed to the selected list(s)
    [2020-02-06 08:29:25] WARNING: Custom > test***@eg*******.ie is already subscribed to the selected list(s)
    [2020-02-06 08:45:58] WARNING: Custom > caoi************@ho*****.co.uk is already subscribed to the selected list(s)
    [2020-02-06 08:46:24] WARNING: Custom > caoi************@ho*****.co.uk is already subscribed to the selected list(s

    • This reply was modified 5 years ago by johnegg.
    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    The error you see is because you must have selected the “Update Existing users” option to “No”.

    Please test using a different email address.

    Thread Starter johnegg

    (@johnegg)

    Ok ill try that thanks

    Thread Starter johnegg

    (@johnegg)

    Didnt work sorry see attached https://ibb.co/LJ3PzcT

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey John,

    Can you please create a form using our plugin, add the interest groups to it and test it? If the interest groups data is passed to MailChimp.com, then let me know and please also share a link to your checkout page.

    Thread Starter johnegg

    (@johnegg)

    Tried that thanks but no luck. https://dev.smartersurfaces.com.au/

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Can you share a link where you have placed this form?

    Also, can you please confirm if the interest group Id you added to the code is correct?

    Thread Starter johnegg

    (@johnegg)

    I placed the code in functions.php https://ibb.co/zsG9yX9

    I copied the interest group ids from the from I create using the plugin so they should be correct? or where can I find the ids?

    Thread Starter johnegg

    (@johnegg)

    Ok I tested the plugin form in a page using shortcode & it worked. But when I place the code into functions for the checkout page it doesnt add me to the interest group.

    Thread Starter johnegg

    (@johnegg)

    Hi guys, any update here? Sorry we intend to go live next week and i need this working so an help much appreciated.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @johnegg,

    Please prefix the name attribute of your select element with mc4wp- so that our plugin recognises it.

    So the HTML should look like this:

    
    <select name="mc4wp-INTERESTS[b92826806c">
    ... options here
    </select>
    
    Thread Starter johnegg

    (@johnegg)

    Excellent thanks Danny, working now

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Interest groups at checkout not working’ is closed to new replies.