Skip to content

Instantly share code, notes, and snippets.

@msmithstubbs
Created November 1, 2012 22:46
Show Gist options
  • Save msmithstubbs/3997215 to your computer and use it in GitHub Desktop.
Save msmithstubbs/3997215 to your computer and use it in GitHub Desktop.
Customise 'yakında tekrar stokta' button
// Find this in product.liquid:
} else {
var message = variant ? "Yakında tekrar stoklarımızda..." : "Yakında tekrar stoklarımızda...";
$('#add-to-cart', $product).addClass('disabled').attr('disabled', 'disabled').val(message);
}
// and change it to:
} else {
var message = variant ? "Yakında tekrar stoklarımızda..." : "Yakında tekrar stoklarımızda...";
$('#add-to-cart', $product).addClass('disabled').attr('onclick', 'BISPopover.form.show(); return false;').val(message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment