zennedOut
- Join Date:
- Nov 2005
- Location:
- los angeles
- Posts:
- 2,970
- Plugin Contributions:
- 8
MailChimp Newsletter Sidebox
swguy:
Update just posted:
Fixes bug in API integration; adds instructions for changing Zen Cart newsletter page; moves log to logs folder; removes double opt in.
from the latest code:
function mailchimp_add($email) {
$mailchimp = new MailChimp(BOX_MAILCHIMP_NEWSLETTER_API_KEY);
$reply = $mailchimp->list_add_subscriber([
'id_list' => BOX_MAILCHIMP_NEWSLETTER_ID,
'email' => $email,
'status' => 'pending'
]);
not sure how that removes the double opt-in, as still in a pending status v subscribed status.
few things:
- this is a nicely done integration. @swguy install instructions on his website are a tad clearer. (https://www.thatsoftwareguy.com/zencart_mailchimp.html#installation)
- correct me if i'm wrong, but it also seems that with an observer, one could eliminate the need to modify core code; except for includes/modules/pages/account_newsletters/header_php.php. that notifier for NOTIFY_HEADER_ACCOUNT_NEWSLETTER_UPDATED seems like it would need the email address. not really sure how that notifier would work with only having a boolean...
- while i am not a fan, one could add another(!) config to indicate whether one wanted customers to double opt-in or be immediately subscribed.