I need to get the default shiping method when the user refresh the checkout page.

What I notice is that magento keep the last selected shipping method in the Local Storage:

checkout-data selectedShippingAddress

How can I force back the default shipping method when the page have being refresh.

  • As you already knew, magento keeps the selected address in the storage, you just need to clear it. – Jimmy Apr 15 at 1:23
  • Or did you just happen to know it's in the LocalStorage without knowing the actual code that save it there? – Jimmy Apr 15 at 1:24
  • Hi @Jimmy thanks for your comment i am having trouble to clear this storage entry in the quote before the page it is refreshed, I need to put the code in a class that populate a select in the checkout – open-ecommerce.org Apr 15 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.