且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Woocommerce购物车页面上的数量更改时自动更新购物车

更新时间:2023-11-04 18:21:16

只是让这个问题对以后在这里阅读的任何人有用..这是最终为我工作的脚本.我从此有用的指南中找到了答案.

Just to make this question somewhat useful for anyone who reads here in the future.. here is the script that ended up working for me. I found the answer here from this helpful guide.

    jQuery('div.woocommerce').on('click', 'input.qty', function(){ 

        jQuery("[name='update_cart']").trigger("click");

    });