在我的woocommerce网站上,我更改了购物车页面,删除了“更新购物车”按钮,并创建了两个按钮来添加和删除产品项目,如下图所示:当我点击数量按钮时,如果我按下按钮来更新购物车,我想调用相同的函数为此,我使用ajax,但它不做任何事情。首先,在我的function.php文件中,我有以下内容: // here update then cart
var_dumpwp_localize_script(
不幸的是,在我的店里,所有的产品数量都是浮动的。我使用下面的代码接受浮动值作为数量在我的网站上。// Removes the WooCommerce filter, that is validating the quantity to be an int
// Add a filter, that va