function updateVariantImage(image) {
    var src = (image) ? image.src : ShopifyBuy.NO_IMAGE_URI;

    $('#buy-button-1 .variant-image').attr('src', src);
  }
/* Update product image based on selected variant
  ============================================================ */
Update product image based on selected variant
Update product image based on selected variant
function updateVariantImage(image) {
    var src = (image) ? image.src : ShopifyBuy.NO_IMAGE_URI;
    $('#buy-button-1 .variant-image').attr('src', src);
  }
function updateVariantImage ( image ) { var src = ( image ) ? image . src : ShopifyBuy . NO_IMAGE_URI ; $ ( '#buy-button-1 .variant-image' ) . attr ( 'src' , src ) ; }
Update product image based on selected variant
Update product image based on selected variant