Created
January 6, 2017 04:16
-
-
Save stunomatic/eba27165272c9f64c704cd62f7a1482a to your computer and use it in GitHub Desktop.
WooCommerce auto-update cart when variable selected.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the website with single product URL: http://stunomatic.com/amp/donation/ | |
I hide the cart button and now I want to update cart when someone select variable or type value in input field. | |
how I can do that please advice |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I customize this script but getting one error " Please choose product options"
` jQuery(document).ready(function($) {
var add_to_cart_btn = $(".single_add_to_cart_button");
// add_to_cart_btn.hide();
$("ul.donate-now").find("li").on("change", function(){
add_to_cart_btn.trigger("click");
});
});
`