Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2.2.1: Changes like "unsubscribe" and "delete" to subscribers in Magento backend aren't synched #147

Closed
jhruehl opened this issue Dec 6, 2017 · 5 comments
Assignees
Milestone

Comments

@jhruehl
Copy link
Contributor

jhruehl commented Dec 6, 2017

Though the initial sync worked fine with two Mailchimp Stores configured for both store views and given lists in our Mailchimp test account, later changes made by backend users in the Magento newsletter backend section aren't synced.

Preconditions

  1. Magento 2.2.1
  2. PHP 7.1.12
  3. MySQL 5.5.5-10.1.23-MariaDB
  4. Ebizmart_MailChimp 1.0.24 extension installed
  5. MailChimp extension completely configured for two different store views with webhook enabled
  6. Mailchimp lists sync finished (though it says otherwise on the MailChimp account page 'Connected sites")

Steps to reproduce

  1. Unsubscribe a subscribed user
  2. Delete another subscribed user

Expected result

  1. Both changes will be synced with Mailchimp list after the next 5 min cron

Actual result

  1. No changes at all in the Mailchimp list.

Comments

I found a similar issue with the Magento 1 Mailchimp extension, which was dated around 2014.

Otherwise I looked deeply into the Mailchimp extensions code and saw only plugins for the frontend to make an immediate call to the API, if customers or guests subscribe to the newsletter. There was nothing similar in place for the backend newsletter section. At least nothing that I could figure out that would do the trick.

Maybe you should think about implementing a plugin for the Magento 2 backend newsletter section that does the same trick as in the frontend.

@gonzaloebiz
Copy link
Collaborator

Please take a look at http://docs.magento.com/m2/ce/user_guide/magento/system-requirements.html
PHP 7.1 is not supported and mysql 5.5 neither

@jhruehl
Copy link
Contributor Author

jhruehl commented Dec 11, 2017

This has nothing to do with the PHP version. Once the subscriber or customer id is set in the related_id column of the mailchimp_ecommerce table, there won't be any syncing of that subscriber/customer anymore, because only subscriber entries, which aren't already related to in that table are synced according to your code.

A solution would be to add an observer to the backend/newsletter-subscriber section, which sends any changes made there via the api to mailchimp or just adds it to the current batch, which will be send to the Mailchimp API every 5 minutes.

@centerax centerax added the 2.2 label Jan 2, 2018
@MaxKonstructive
Copy link

Hey @gonzaloebiz, I am facing a similar issue, Magento 2.1.11, php 7.0.27.

Unsubscribe works both ways.
However, deleting a user in Magento will not change anything in Mailchimp.

Is there a fix planned for this?

@MaxKonstructive
Copy link

Hi @gonzaloebiz, any update?

@shreddieb
Copy link

Same issue here. Would expect the unsubscribe / deleted subscriber accounts on the Magento db to sync to Mailchimp list as I have "Enable Two Way Sync" set to "Yes".
I'm on Magento 2.2.3; php 7.0.28

@gonzaloebiz gonzaloebiz self-assigned this Apr 5, 2018
@gonzaloebiz gonzaloebiz added the bug label Apr 5, 2018
@gonzaloebiz gonzaloebiz added this to the 1.0.29 milestone Apr 5, 2018
gonzaloebiz added a commit that referenced this issue Apr 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants