Jump to content

Edit History

Andrei H

Andrei H

Hello,

From my understanding, PrestaShop does so in order to not change the address for all the orders that use it (eg. the address for the current order will be changed, but all orders that were using the same address will still use the old address).

If you really want to change this logic, you need to edit the following file: src/Adapter/Address/CommandHandler/EditCustomerAddressHandler.php

You will need to replace line 62

if ($editedAddress->isUsed()) {

with:

if (false) {

Thus making sure that the address is always updated.

Andrei H

Andrei H

Hello,

From my understanding, PrestaShop does so in order to not change the address for all the orders that use it (eg. the address for the current order will be changed, but all orders that were using the same address will still use the old one).

If you really want to change this logic, you need to edit the following file: src/Adapter/Address/CommandHandler/EditCustomerAddressHandler.php

You will need to replace line 62

if ($editedAddress->isUsed()) {

with:

if (false) {

Thus making sure that the address is always updated.

Andrei H

Andrei H

Hello,

From my understanding, PrestaShop does so in order to not change the address for all the orders that use it.

If you really want to change this logic, you need to edit the following file: src/Adapter/Address/CommandHandler/EditCustomerAddressHandler.php

You will need to replace line 62

if ($editedAddress->isUsed()) {

with:

if (false) {

Thus making sure that the address is always updated.

×
×
  • Create New...