Skip to content

Instantly share code, notes, and snippets.

@igorpoubel
Created April 6, 2020 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorpoubel/01fac0fb5ef450cafe953ff0622142fc to your computer and use it in GitHub Desktop.
Save igorpoubel/01fac0fb5ef450cafe953ff0622142fc to your computer and use it in GitHub Desktop.
Get (and change), via LocalStorage, the shipping option on VTEX
var data = JSON.parse(window.localStorage.getItem('aditionalShippingData'));
data.selectedLeanShippingOption = "FASTEST"; // ou CHEAPEST
window.localStorage.setItem('aditionalShippingData',JSON.stringify(data));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment