Skip to content

Instantly share code, notes, and snippets.

@brettwejrowski
Last active December 15, 2015 17:29
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 brettwejrowski/5296485 to your computer and use it in GitHub Desktop.
Save brettwejrowski/5296485 to your computer and use it in GitHub Desktop.
Popup Shop Bookmarklet helper
alert('hey');
$.each({
"checkout_ship_to_first_name": "In-Store"
, "checkout_ship_to_last_name": "Purchase"
, "checkout_ship_to_address_line_1": "50 Post"
, "checkout_ship_to_address_line_2": "Space #9"
, "checkout_ship_to_city": "San Francisco"
, "country_select": 226
, "state_select": 6
, "checkout_ship_to_postal_code": "94104"
, "checkout_email": ""
}, function( id, val ){
$("#" + id ).val(val);
});
$("#checkout_email").focus();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment