update the customer's email #934
-
Hi guys, is it possible to update the customer email instead of creating a new one ? https://simple-commerce.duncanmcclean.com/tags/cart -> Update Cart In this case, only name or however you define it is updated. But the email is not updated! Actually, the only thing I want to ask is how can I update the customer's email in the cart? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey 👋 I've just did a little bit of testing and unfortunately, there's no way to update a customer's email address with the I can't change this without introducing a breaking change but I'll take note for v6. We can probably make it so In the meantime, there's two ways you could potentially workaround this limitation:
Hopefully that's helpful - sorry it's not possible yet in SC! |
Beta Was this translation helpful? Give feedback.
Hey 👋
I've just did a little bit of testing and unfortunately, there's no way to update a customer's email address with the
{{ sc:cart:update }}
tag. When you provide a new email, it'll create a completely new customer.I can't change this without introducing a breaking change but I'll take note for v6. We can probably make it so
<input type="email" name="customer[email]">
updates the existing customer entry if the order already has a customer set.In the meantime, there's two ways you could potentially workaround this limitation:
{{ sc:customer:update }}
tag (although, you can't use this inside another form)