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?

1 Answer 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.

  • 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? Mar 13, 2017 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.