Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Whenever I create a new order and use an address-on-file or choose "my shipping information is the same as my billing information", CK creates additional addresses. For one account I now have around 20 duplicated addresses on file.
Please see attached screenshot.
No new addresses should be created if:
- The user selects an already stored address from the dropdown
- The user enters identical information with an address already on file (e.g. hashes could be compared)
Comment | File | Size | Author |
---|---|---|---|
#11 | address-dups.png | 8.97 KB | Infinitee |
#4 | repeated billing and shipping addresses.png | 488.71 KB | makokis |
duplicate_addresses.png | 33.23 KB | marktheshark |
Comments
Comment #1
marktheshark CreditAttribution: marktheshark commentedComment #2
JCL324I can confirm this happens on KS 2.6 as well.
Comment #3
marktheshark CreditAttribution: marktheshark commentedComment #4
makokis CreditAttribution: makokis commentedsame issue here using
Commerce Kickstart (commerce_kickstart-7.x-2.12) and
Commerce Addressbook 7.x-2.0-rc7
see attached
Comment #5
marktheshark CreditAttribution: marktheshark commentedHate to bump, but this is still a problem.
It would be useful to have this issue acknowledged by the maintainers of Commerce Address Book.
Comment #6
lsolesen CreditAttribution: lsolesen commented@marktheshark Would you be able to create a Behat test showing this problem?
Comment #7
lsolesen CreditAttribution: lsolesen commentedI can confirm that it seems that the shipping information is copied again, when using this Behat test:
https://github.com/lsolesen/commerce_kickstart/blob/addressbook/tests/be...
However, I am not certain whether this is expected behavior?
Comment #8
lsolesen CreditAttribution: lsolesen commentedRelated to #1958698: Erratic "Address on file" behavior during checkout - Address selection not respected - (Dis)appearing addresses
Comment #9
marktheshark CreditAttribution: marktheshark commentedHello, I would expect that there should be some hash of address fields that helps detect identical information and not create identical entries if the address hash matches.
That being said, this occurs even if you select an existing address from your address list.
Comment #10
Infinitee CreditAttribution: Infinitee commentedI am having this problem with the latest CK... 7.x-2.15
Go to checkout and the address fields are empty even with an address on file.
Try to apply "Address on file" and nothing happens.
Fill out BILLING INFORMATION form and it adds another address to "Address on file" list.
Comment #11
Infinitee CreditAttribution: Infinitee commentedComment #12
lsolesen CreditAttribution: lsolesen commentedComment #13
mglamanThis is a Drupal Commerce bug, which may have been fixed recently.
Comment #14
sjmobley CreditAttribution: sjmobley at Centarro commentedThis issue has been resolved by a recent update to the Addressfield module.