1

I want to know function logic location, when customer address is remove from admin section. The cross button is present in "Addresses" tab in left navigation of Customer Information. After click cross button and hit save or save and continue Edit which functions calls in both cases for remove customer address which are assigned to customer.

1 Answer 1

0

In file app\code\core\Mage\Adminhtml\controllers\CustomerController.php and action saveAction

Code :

// Mark not modified customer addresses for delete
            foreach ($customer->getAddressesCollection() as $customerAddress) {
                if ($customerAddress->getId() && !in_array($customerAddress->getId(), $modifiedAddresses)) {
                    $customerAddress->setData('_deleted', true);
                }
            }
1
  • Yes looking for the same.
    – Mathew
    Nov 27, 2015 at 10:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.