Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
lmeurs CreditAttribution: lmeurs commentedWe 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.
Comment #2
rob3000 CreditAttribution: rob3000 commentedI'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?
Comment #3
mglamanThis 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.
Comment #4
mglamanForgot to mark it as related..
Comment #5
mglamanMarking for release plan.