Created
November 9, 2015 09:22
-
-
Save thisislawatts/344812eef924ad582bad to your computer and use it in GitHub Desktop.
Extract Shopify Shipping Rates as json
This file contains hidden or 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
jQuery.get('/admin/countries.json', function(res) { | |
var str = '<script>var AC = window.AC || {};' + "\r"; | |
str += 'AC.shipping = ' + JSON.stringify(res.countries) + '</script>'; | |
document.body.innerHTML = '<code>' + str + '</code>'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment