cancel
Showing results for 
Search instead for 
Did you mean: 

If any item in cart, user should not delete/edit addresses for that cart item related addresses?

If any item in cart, user should not delete/edit addresses for that cart item related addresses?

Hello All,

 

I am using Magento 1.9.2.4.

I want that if any of my site user has an item in Cart than the addresses that are related to that cart product will not be edited/deleted from address book of there account.

They can change/delete that addresses once that cart item will ordered or deleted from cart.

 

Please let me know what can I do for this.

Thanks in anticipation.

 

1 REPLY 1

Re: If any item in cart, user should not delete/edit addresses for that cart item related addresses?

@neha23 Simply track the change address events "customer_address_save_before" and "controller_action_predispatch_checkout_onepage_delete"  And check their cart status, if quote generated then redirect back else perform action..

 

Cheers

-
Magento Programmer | Was my answer helpful? You can accept it as a solution.