cancel
Showing results for 
Search instead for 
Did you mean: 

How to change "shippingaddressfromdata" section from local storage when customer update his billing

How to change "shippingaddressfromdata" section from local storage when customer update his billing

Hello Community, 

 

Hope you all are safe.

When we add new product in a cart and go to checkout page & change Shipping Address then Magento stores that data into browsers local storage in "checkout-data" section. 

My require is meantime in case customer change his billing & shipping address from my account section then that time I want to set value of shipping-address-from-data to null in browser local storage.(Address change happens only from my account section and not from checkout page) . 

Because once we reach to checkout and do "Edit & View Cart" then it shows country whatever is selected for shipping to estimate shipping and tax. Meantime if we change address from "My Account" section it is not updating that data local storage data. The requirement is it should update that data otherwise set it as a null.

 

Can you please guide a little bit ? 

 

Thanks in advanced ! Take care of your family and yourself.