- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019
09:13 PM
09-12-2019
09:13 PM
Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
I have added edit link to all the address in shipping step. I am able to update, and the changes are saved in the database but the changes are reflected in the front-end only when the page is reloaded. How to update the address list so that the changes are reflected in the front-end as soon as the update button is clicked .
updateAddress: function () { var addressData, newShippingAddress, addressId, this.source.set('params.invalid', false); this.triggerShippingDataValidateEvent(); if (!this.source.get('params.invalid')) { addressData = this.source.get('shippingAddress'); addressId=$('input[name=shippingAddressId]').val(); if(addressId){ var Data = {"addressData": addressData, "addressId": addressId}; fullScreenLoader.startLoader(); storage.post( 'checkout/address/update', JSON.stringify(Data), true ).done( function (response) { console.log(response); console.log("updated"); fullScreenLoader.stopLoader(); } ).fail( function (response) { console.log("failure"); console.log(response); fullScreenLoader.stopLoader(); } ); this.isFormVisible(false); } } },
Labels:
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2020
06:47 AM
03-26-2020
06:47 AM
Re: Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
Any any knows?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2020
04:07 AM
03-27-2020
04:07 AM
Re: Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
Now I get it
vendor/magento/module-checkout/view/frontend/web/js/action/create-shipping-address.js
Refer this file you get some idea.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2020
12:36 AM
04-20-2020
12:36 AM
Re: Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
Ya , found the solution.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2020
05:20 AM
05-02-2020
05:20 AM
Re: Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
yes
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2021
04:01 AM
12-15-2021
04:01 AM
Re: Magento 2-How to update address list (data:elems) in shipping-address/list.html ?
can you please update solution here.