{"id":2006,"date":"2018-11-15T09:22:24","date_gmt":"2018-11-15T14:22:24","guid":{"rendered":"http:\/\/www.thatsoftwareguy.com\/blog\/?p=2006"},"modified":"2018-11-15T09:22:24","modified_gmt":"2018-11-15T14:22:24","slug":"zen-cart-mailchimp-integration","status":"publish","type":"post","link":"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/11\/15\/zen-cart-mailchimp-integration\/","title":{"rendered":"Zen Cart &#8211; MailChimp Integration"},"content":{"rendered":"<p>My Zen Cart &#8211; MailChimp integrations have received the following updates:<\/p>\n<ul>\n<li><strong>Fixed bug in API integration<\/strong>:<br \/>\nThe original integration had error checking that was based on the 1.3 API, and lo longer work.\u00a0 So while the success path logic was all correct, the error handling was wrong.<\/li>\n<li><strong>Added instructions for changing Zen Cart newsletter page<\/strong>:<br \/>\nThe original Zen Cart integration only handled signup on the account creation page. Now users may subscribe or unsubscribe on the newsletter page (which is linked to on the My Account page as\u00a0<em>\/index.php?main_page=account_newsletters.<\/em><\/li>\n<li><strong>Removed double opt in<\/strong>:<br \/>\nAt the request of ecommerce companies, MailChimp has changed the default subscribe behavior so that double opt in is no longer required.\u00a0 Users who prefer the prior behavior can still change it back by modifying the PHP API (<em>includes\/functions\/extra_functions\/mailchimp.php<\/em>) to set status based on\u00a0<em>$options[&#8216;status&#8217;]<\/em> rather than just to <em>subscribed<\/em>.<\/li>\n<li><strong>Moved MailChimp error log to <em>\/logs<\/em> folder<\/strong>:<br \/>\nIn the event of an error, the MailChimp.log file was being written to the <em>\/cache<\/em> folder; it is now written to the <em>\/logs<\/em> folder where it is more likely to be noticed (since most logfiles have been migrated there in Zen Cart 1.5+).<\/li>\n<\/ul>\n<p>You can see the updates in my\u00a0<a href=\"https:\/\/www.thatsoftwareguy.com\/zencart_mailchimp.html\">ZenCart MailChimp<\/a> and <a href=\"https:\/\/www.thatsoftwareguy.com\/zencart_newsletter_discount.html\">ZenCart Newsletter Discount<\/a> contributions, and\u00a0 my <a href=\"https:\/\/github.com\/scottcwilson\/zencart_mailchimp\" target=\"_blank\" rel=\"noopener\">MailChimp Integration for Zen Cart<\/a>\u00a0GitHub repository.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My Zen Cart &#8211; MailChimp integrations have received the following updates: Fixed bug in API integration: The original integration had error checking that was based on the 1.3 API, and lo longer work.\u00a0 So while the success path logic was all correct, the error handling was wrong. Added instructions for changing Zen Cart newsletter page: &hellip; <a href=\"https:\/\/www.thatsoftwareguy.com\/blog\/2018\/11\/15\/zen-cart-mailchimp-integration\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Zen Cart &#8211; MailChimp Integration<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,88,58,78],"tags":[],"class_list":["post-2006","post","type-post","status-publish","format-standard","hentry","category-email","category-php","category-that-software-guy","category-zen-cart"],"_links":{"self":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/comments?post=2006"}],"version-history":[{"count":2,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions"}],"predecessor-version":[{"id":2008,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2006\/revisions\/2008"}],"wp:attachment":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/media?parent=2006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/categories?post=2006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/tags?post=2006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}