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

Ecommerce Sync not working mailchimp for Magento2. #145

Closed
trushangsuthartri opened this issue Dec 5, 2017 · 16 comments
Closed

Ecommerce Sync not working mailchimp for Magento2. #145

trushangsuthartri opened this issue Dec 5, 2017 · 16 comments

Comments

@trushangsuthartri
Copy link

trushangsuthartri commented Dec 5, 2017

Issue Description:

I have installed ebizmart_mailchimp extension in my magento 2.1.8 and it has many issues. Users are not subscribing well and ecommerce tracking is not working.

While I am checking "cron_schedule" table for "ebizmarts_ecommerce" job it is showing error and cron never get success

Notice: Undefined property: Mailchimp_Ecommerce::$promoCodes in vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php on line 143

I already upgraded extension to 1.0.25 by downloading latest version from git and running setup upgrade command

It was working with 1.0.24 but inconsistance so I have upgraded to 1.0.25 but after upgrade it stop working completely. In many cases email is also not subscribe to mailchimp.

So can you please help me to troubleshoot issue?

Magento CE ver: 2.1.8
mc-magento2 ver: 1.0.25

Steps to reproduce:
When someone place an order it is not going into mailchimp ecommerce.

Actual and Expected result
Order data shoulds be there in mailchimp ecommerce.

@trushangsuthartri trushangsuthartri changed the title Title: Ecommerce Sync not working mailchimp for Magento2. Ecommerce Sync not working mailchimp for Magento2. Dec 5, 2017
@gonzaloebiz
Copy link
Collaborator

Update the ebizmarts/mailchimp-lib

@dan-ding
Copy link

dan-ding commented Dec 5, 2017

updating doesn't fix it.

@gonzaloebiz
Copy link
Collaborator

What version of ebizmarts/mailchimp-lib do you have

@dan-ding
Copy link

dan-ding commented Dec 6, 2017

ee 2.1.10, mailchimp/mc-magento2 1.0.25, ebizmarts/mailchimp-lib 3.0.16

@trushangsuthartri
Copy link
Author

After upgrading mailchimmp library to version 3.0.16 it is giving me error "Requested country is not available." in ebizmarts_ecommerce cron. Can you please reopen ticket and check what is wrong?

I did perform
composer require ebizmarts/mailchimp-lib
composer require mailchimp/mc-magento2 dev-develop

@gonzaloebiz
Copy link
Collaborator

@trushangsuthartri take a look at #58

@trushangsuthartri
Copy link
Author

trushangsuthartri commented Dec 6, 2017

@gonzaloebiz
We already checked that code and code is up to date as that issue is fixed in previous version and I have 1.0.25

@dan-ding
Copy link

dan-ding commented Dec 8, 2017

Can we get this re-opened?

@gonzaloebiz
Copy link
Collaborator

why?

@dan-ding
Copy link

Cause we're not seeing commerce data synced? I can open a new ticket for it if you like

@dan-ding
Copy link

@gonzaloebiz ?

@gonzaloebiz
Copy link
Collaborator

Open a new ticket, in fact, you use EE not CE

@dan-ding
Copy link

ok!

@sam110386
Copy link

sam110386 commented Dec 22, 2017

i was also getting same error after update ebizmarts/mailchimp-lib ,
I made a temporary fix for this at line # 143 in Ebizmarts\MailChimp\Model\Api\PromoRules.php
I replaced
$mailchimpRule = $api->ecommerce->promoCodes->getAll($mailchimpStoreId,$ruleId);

with following

if(!is_object($api->ecommerce->promoCodes)){continue;} $mailchimpRule = $api->ecommerce->promoCodes->getAll($mailchimpStoreId,$ruleId);

Hope it will help someone.

@tonybluebadger
Copy link

Any update on this?

@shreddieb
Copy link

@gonzaloebiz I know this is an old / closed ticket, but I am experiencing what appears to be the same or very similar ebizmarts_ecommerce sync error now with newer releases:
Warning: Invalid argument supplied for foreach()
vendor/mailchimp/mc-magento2/Model/Api/PromoRules.php on line 154

ebizmarts_ecommerce-error

details:
magento: 2.3.4
ebizmarts/mailchip-lib: 3.0.30
mailchimp/mc-magento2: 102.3.37

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants