<script>
jQuery('.add_to_cart_button ').click(function(e) {
e.preventDefault();
var ProductId = jQuery(this).data("product_id")
addToCart(ProductId);
return false;
});
function addToCart(ProductId) {
//show popup for fet user details in popup
// process user data
}
</script>
1 回答
你必须这样做 .