在我的WooCommerce网站中,我有几个产品以相同的价格80 $。 我想添加一个折扣的产品数量。 的逻辑是这样的: if (Products Quantity is 2){
// the original product price change from 80$ to 75$ each.
}
if(Products Quantity is 3 or more){
/
折扣百分比我在主题展示后价格的百分比function.php有这个代码,它是在WooCommerce v2.6.14工作的罚款。 但这个片段已经不上WooCommerce 3.0或更高版本的工作。 我该如何解决这个问题? 下面是代码: // Add save percent next to sale item prices.
add_filter('woocommerce_sale_price_