Created
April 6, 2020 14:20
-
-
Save igorpoubel/01fac0fb5ef450cafe953ff0622142fc to your computer and use it in GitHub Desktop.
Get (and change), via LocalStorage, the shipping option on VTEX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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