Hi,

Currently, when something wrong happens on validation (like a direct payment with a technical failure), the customer profile is created, but the form is reloaded with "-- Choose --" selected for the AdressBook select field (as it was just before the submit), so a new customer profile is created after submit, leading to the creation of duplicates.

Comments

lmeurs’s picture

We ran into similar problems of duplicate profiles being created (#2059277: Workaround side effects of saving copied profiles on validation).

A nice feature would be if Commerce Addressbook would remove duplicate profiles before / after profile creation.

rob3000’s picture

I'm having the same issue.

Is there not some way we could add a check to see if they have entered the same information as what is already saved and just not save that address?

mglaman’s picture

Issue summary: View changes

This issue may be relevant: #2173861: Disable 'outdated' profiles on checkout submit. I'm not sure if this profile duplication issue is caused by Addressbook or Commerce itself - and Addressbook just provides exposure to it.

mglaman’s picture

Forgot to mark it as related..

mglaman’s picture

Marking for release plan.