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)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

marktheshark’s picture

Issue summary: View changes
JCL324’s picture

I can confirm this happens on KS 2.6 as well.

marktheshark’s picture

Issue summary: View changes
makokis’s picture

same issue here using
Commerce Kickstart (commerce_kickstart-7.x-2.12) and
Commerce Addressbook 7.x-2.0-rc7

see attached

marktheshark’s picture

Hate to bump, but this is still a problem.

It would be useful to have this issue acknowledged by the maintainers of Commerce Address Book.

lsolesen’s picture

@marktheshark Would you be able to create a Behat test showing this problem?

lsolesen’s picture

I 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?

marktheshark’s picture

Hello, 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.

Infinitee’s picture

I 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.

Infinitee’s picture

FileSize
8.97 KB
lsolesen’s picture

Version: 7.x-2.12 » 7.x-2.15
mglaman’s picture

Project: Commerce Kickstart » Commerce Core
Version: 7.x-2.15 » 7.x-1.x-dev
Component: Code » Customer

This is a Drupal Commerce bug, which may have been fixed recently.

sjmobley’s picture

Category: Bug report » Support request
Status: Active » Closed (outdated)

This issue has been resolved by a recent update to the Addressfield module.