Skip to content

Instantly share code, notes, and snippets.

@adipasquale
Created March 6, 2015 14:30
Show Gist options
  • Save adipasquale/2ec58d0d804a9d7d51ff to your computer and use it in GitHub Desktop.
Save adipasquale/2ec58d0d804a9d7d51ff to your computer and use it in GitHub Desktop.
asin-bookmark.js
var ddm = twisterController.twisterModel.viewHandle.dimensionDisplayMap;
var dimvals = twisterController.twisterVariationsData.dimensionValuesDisplay[twisterController.twisterModel.twisterState.currentASIN];
var mmap = "";
for (var i=0;i<ddm.length;i++){
mmap += (" " + ddm[i]+": "+dimvals[i]+"\n");
};
mmap += "\n";
var x=window.prompt("Selected product variant is\n"+mmap+"Use this ASIN to order via Zinc:",twisterController.twisterModel.twisterState.currentASIN);%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment