Skip to content

Instantly share code, notes, and snippets.

@zackkatz
Created January 30, 2014 21:39
Show Gist options
  • Save zackkatz/8720458 to your computer and use it in GitHub Desktop.
Save zackkatz/8720458 to your computer and use it in GitHub Desktop.
Force Bigcommerce to use larger images for texture swatches
/**
* Convert tiny thumbnails to larger previews for product texture swatches
* @group Product
*
*/
jQuery('.textureContainer .thumbnail').attr('style', function() {
return jQuery(this).attr('style').replace('.thumbnail.png', '.preview.png');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment