mc-magento icon indicating copy to clipboard operation
mc-magento copied to clipboard

An email address may not be changed once a customer is created

Open Santiagoebizmarts opened this issue 8 years ago • 30 comments

Santiagoebizmarts avatar Jun 20 '16 19:06 Santiagoebizmarts

In magento a customer can change their email in any moment, we need to go deeply on this

gonzaloebiz avatar Jun 22 '16 20:06 gonzaloebiz

We could add support in the MailChimp API to update an existing customer's email address - that may be the ideal behavior here.

takmonster avatar Jun 22 '16 22:06 takmonster

That would be great. What happens if we delete an existing customer, the associated orders are deleted too?

gonzaloebiz avatar Jun 23 '16 12:06 gonzaloebiz

Not at the moment, no. Is that what we would want?

takmonster avatar Jun 24 '16 19:06 takmonster

No. The best approach is that the API allows to change the customer email Imagine this situation. The customer change the email, we delete the customer via API (the orders remains in mailchimp linked to a this customer id), then we add a new customer with the changed email, but with the same customer id that the old one. That works in your end? or we can't add a customer with the same id that one deleted customer?

gonzaloebiz avatar Jun 24 '16 19:06 gonzaloebiz

Cool, I agree - allowing the update of an existing Customer's email address via the API would be the ideal solution.

For your questions, we DO allow adding a customer with the same id of a DELETED customer - but I'm not confident that the existing orders will be re-associated properly. I can test a bit and let you know on Monday.

takmonster avatar Jun 24 '16 20:06 takmonster

Ok, thanks.

gonzaloebiz avatar Jun 24 '16 20:06 gonzaloebiz

Assigning to @takzilla , I think we need the API modified, right?

centerax avatar Jun 29 '16 18:06 centerax

~~Yep yep - will be working on this in our upcoming release, which is expected to be live around the 20th.~~

We had to bump this so we hope to have it ready early August.

takmonster avatar Jul 01 '16 14:07 takmonster

Hi guys. I was curious how things are progressing with this issue. It just became extremely relevant to us with our Miva/MailChimp integration and we're kind of on hold pending its resolution. Can we expect that the API is going to be modified so that PUT requests to the customer resource containing a different email address will result in the customer record being updated rather than the error response we're currently getting? Thank you kindly!

twoonesixdigital avatar Sep 06 '16 13:09 twoonesixdigital

Hey there,

MailChimp dev here. We haven't been able to build this out yet on the MailChimp-side, so this issue is still unresolved and in progress. Apologies for the wait - I'll be sure to post an update once it's become a feature of our API.

takmonster avatar May 02 '17 19:05 takmonster

We're going to re-visit this in the coming weeks and I'll post our progress. Going to bump this up in priority as it's beginning to cause some headaches for other platform integrations as well.

takmonster avatar Jun 16 '17 19:06 takmonster

Bump!

WinstonN avatar Oct 18 '17 12:10 WinstonN

Bump! Any updates @takzilla ?

brendanronan avatar Nov 08 '17 00:11 brendanronan

Bump! @takzilla any updates?

szewczykmira avatar Jan 11 '18 11:01 szewczykmira

Sorry for the late response! No updates unfortunately - we don't have any concrete plans in the short-term to complete work on this. If that changes I'll be sure to update this thread.

takmonster avatar Feb 12 '18 20:02 takmonster

@Santiagoebizmarts what is the workaround if a customer has changed their email address? I have lots of errors but can't work out how to reset or remove the user to prevent the errors. The error log doesn't say which user it is.

danharper83 avatar Apr 05 '18 15:04 danharper83

@danharper83 For customers who are subscribed we remove the subscriber and create a new one. Unfortunately for the customer object used in Automations this is not done because you would loose all the history you have on that customer. Unfortunately there is not much we can do with this in the extension side of things.

Regards.

Santiagoebizmarts avatar Apr 05 '18 16:04 Santiagoebizmarts

@Santiagoebizmarts the error log doesn't tell me which user it is that is failing.

danharper83 avatar Apr 06 '18 09:04 danharper83

Hello,

This should only affect those particular cases but the rest should work normally. I am not sure what you mean with your last comment.

Regards.

Santiagoebizmarts avatar Apr 06 '18 15:04 Santiagoebizmarts

@Santiagoebizmarts since I first started receiving this error message none of my other users have been added to the list, that was back at the start of March. There are around 60 users that haven't been added.

danharper83 avatar Apr 06 '18 15:04 danharper83

This commit has been tested and works & will fix this. If the user changes his/her email address on the magento (on front or by admin) it will unsubscribe the original email and subscribe the new email. https://github.com/mailchimp/mc-magento/pull/520

WinstonN avatar Apr 06 '18 17:04 WinstonN

ALSO: mailchimp just replied and said email can be updated right here (and this is the advised way)

https://developer.mailchimp.com/documentation/mailchimp/reference/lists/members/#edit-patch_lists_list_id_members_subscriber_hash

Use PATCH command and change email

seansan avatar Apr 07 '18 13:04 seansan

@seansan

You are right about subscriber emails, unfortunately for customers this is not possible yet.

Regards.

Santiagoebizmarts avatar Apr 09 '18 14:04 Santiagoebizmarts

got it!

and it is not possible to use a LIST command here? (maybe even as a workaround)

seansan avatar Apr 09 '18 14:04 seansan

@seansan Unfortunately it is not. I just tested if the change in the subscriber endpoint affected the customer and it doesn't.

Santiagoebizmarts avatar Apr 09 '18 17:04 Santiagoebizmarts

@Santiagoebizmarts

MC keeps confirming that is IS possible. When I said it is impossible they repsonded with this answer

"Make a GET call to the /lists/{list_id}/members endpoint. After making that call, you can get the subscriber_hash value for the list member you want to update and use it with the PATCH call to change the target subscribers email address. "

seansan avatar Apr 11 '18 07:04 seansan

@seansan the specific issue we're referring to applies to customers, not list members. They are two different entities.

brendanronan avatar Apr 18 '18 18:04 brendanronan

At today, once a customer is created with a given email, there's no way to change its email. Also, is not possible to delete the customer and create a new one with an updated email because customer may only be deleted if no orders are associated with that customer. This is a serious lack for our ecommerce. Someone knows a workaround for this? @takzilla , what is the official procedure according to MC?

tompicca avatar Jul 15 '18 17:07 tompicca

+1, we are having the same problem. Customers can and do change their email addresses in our system, and that change needs to be reflected in Mailchimp. Sending a PATCH to update the list member that's associated with the customer results in this error:

This member's status is "transactional." You can only update email addresses for members with a status of "subscribed."

So we're stuck at the moment. No way to update a customer's email address without first deleting all of their orders, then deleting the customer and re-creating ALL of their orders.

pelargir avatar Apr 02 '19 23:04 pelargir