<p>It's not implemented, but possible.  I think it should be part of Commerce core really, and done when the user is created by default.</p>

<p>In the meantime, my Register On Checkout plugin does this - <a href="https://github.com/bossanova808/CommerceRegisterOnCheckout" rel="nofollow noreferrer">https://github.com/bossanova808/CommerceRegisterOnCheckout</a></p>

<p>You could adapt this more generally I guess to listen to all user registrations and see if there are addresses to move over.</p>

<p>The actual code that updates the addresses is here: <a href="https://github.com/bossanova808/CommerceRegisterOnCheckout/blob/master/commerceregisteroncheckout/CommerceRegisterOnCheckoutPlugin.php#L312" rel="nofollow noreferrer">https://github.com/bossanova808/CommerceRegisterOnCheckout/blob/master/commerceregisteroncheckout/CommerceRegisterOnCheckoutPlugin.php#L312</a> ... but most of the init method would be relevant I guess.</p>

CC BY-SA 3.0
2017-03-13T17:22:18.460Z
I agree. Should be default behaviour. Your plugin directly addresses this and looks ideal. I will use it but could do with knowing whether the functionality will be added to Core soon? Luke?
Clive Portman
CC BY-SA 3.0
2017-03-11T00:24:33.383Z
2017-03-11T00:24:33.383Z
Jeremy Daalder
<p>When a user is created with the same email as a customer, the orders are attached to that user account. I have a Customer Info custom field attached to the Users, and that is updated to include the order, which is great. </p>

<p>Is it possible for the addresses within that order to be carried over to that same Customer Info field as well? I know that if a new address is added now they're a user then that would be saved. But what about carrying over addresses from the pre-existing order?</p>

<plugin-craftcommerce><addresses>
Carry address over with customer's order when creating user
# Carry address over with customer's order when creating user

(Asked by: username_0 on 2017-03-10)

When a user is created with the same email as a customer, the orders are attached to that user account. I have a Customer Info custom field attached to the Users, and that is updated to include the order, which is great.

Is it possible for the addresses within that order to be carried over to that same Customer Info field as well? I know that if a new address is added now they're a user then that would be saved. But what about carrying over addresses from the pre-existing order?

**Tags:** plugin-craftcommerce, addresses

---

## 1 answers

### Answer by username_1 on 2017-03-11. Score: 1

It's not implemented, but possible. I think it should be part of Commerce core really, and done when the user is created by default.

In the meantime, my Register On Checkout plugin does this - <https://github.com/bossanova808/CommerceRegisterOnCheckout>

You could adapt this more generally I guess to listen to all user registrations and see if there are addresses to move over.

The actual code that updates the addresses is here: <https://github.com/bossanova808/CommerceRegisterOnCheckout/blob/master/commerceregisteroncheckout/CommerceRegisterOnCheckoutPlugin.php#L312> ... but most of the init method would be relevant I guess.

> **Comments:**
> **username_0**: I agree. Should be default behaviour. Your plugin directly addresses this and looks ideal. I will use it but could do with knowing whether the functionality will be added to Core soon? Luke?  

---

