Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was hunting around for a D7 version for this, and since nothing was available I've cobbled something together - partially based on the previous version but compatible with Ubercart 7.x-3.5.
Others might find it useful -but as I'm pressed for time I was unable to integrate properly with the Mailchimp module, so it uses the Mailchimp API directly and you need to insert your own API code and List ID. Would be good if someone could finish this off and post an official D7 version at some point.
Zip file attached.
Comment | File | Size | Author |
---|---|---|---|
uc_mailchimp_subscribe.zip | 3.32 KB | Anonymous (not verified) |
Comments
Comment #1
GBurg CreditAttribution: GBurg commentedThanks, I am going to try this out!
Comment #2
trevorleenc CreditAttribution: trevorleenc commentedThis works great! Thank you!
I would like to know how to set it up where it wouldn't require users to double opt-in. (like the mailchimp module block/page)
Comment #3
ledom CreditAttribution: ledom commentedThanks, works fine! Just miss a configuration page, and a bit of cleaning.
For newbies like me: Api key and list id must be changed into module code.
This module do not need Mailchimp module, no?. So we could remove "dependencies[] = mailchimp" into .info file.
But we still need MCAPI library (put it into our libraries folder)
@trevorleenc: it seems mailchimp does not allow to disable double opt-in (email confirmation needed): http://kb.mailchimp.com/lists/signup-forms/disable-final-welcome-email
Comment #4
bnorbi CreditAttribution: bnorbi commentedChange the $apikey and $listId to these:
So your first list is going to be used and no additional configuration page needed.
Comment #5
parkout CreditAttribution: parkout commentedHello! Please help me. When costumers click finish checkout button we get an empty page with no errors. Could u please tell me what need to do?
P.S. i have changed api and idlist on my.
Comment #6
hockey2112 CreditAttribution: hockey2112 commentedThis no longer works with mailchimp 7.4.x. Error message from logs:
Comment #7
hockey2112 CreditAttribution: hockey2112 commentedAlternate solution: https://www.drupal.org/project/uc_mailchimp_pane