shopware / shopware/shopware

Customer address change in order is confusing/intransparent and saves changes incorrectly

Open
#7,355 2 comments 0 reactions 0 assignees View on GitHub
component/orders domain/checkout domain/customer-support priority/low
Dominant language
PHP
Stars
3.4k
Forks
1.2k
Avg merge
2d 23h
Merged PRs (30d)
433

Description

If I place an order with a customer who only has an identical delivery and billing address (delivery address == billing address) and then want to edit an address (e.g. billing address) in the administration, both addresses are displayed in the dropdown. However, the customer normally only has 1 address, and there is also only one entry in the customer_address table in the database.

It is not possible to recognize which address is which.

If I now select and edit one of the two address data records in the dropdown (using the edit button) and then save the change, the address is saved in the order. The documents also show different addresses (invoice the billing address and delivery bill the delivery address).

The new address is also created in the order_address table. In the customer_address table, the address stored there is also changed to the edited address, but no other address is created. The initial data record is adjusted.

The edited address is now the default delivery and billing address for the customer. This is not correct.

Steps to reproduce:

# register customers with an address
# execute order
# change the billing address in the order
# save order
# check customer data record in the customer overview
# check database table customer_address

expected result: Either a new address is created or the existing (initial) address is not changed

current result: The initial address is changed in the customer_address table and no new address is created. The edited address is now the default delivery and billing address

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.