I would like to ask how to add a custom fee to the woocommerce subscription recurring total?
我想问一下如何为woocommerce订阅重复总额添加自定义费用?
Found this on the web
在网上找到了这个
function woo_add_cart_fee() {
global $woocommerce;
$woocommerce->cart->add_fee( __('Custom', 'woocommerce'), 5 );
}
add_action( 'woocommerce_cart_calculate_fees', 'woo_add_cart_fee' );
However that certain function is just for the regular product NOT SUBSCRIPTION - it doesn't add the fee to the recurring totals..
但是,某些功能仅适用于常规产品而非订购 - 它不会将费用添加到经常性总计中。
Any help would be appreciated. Thanks!!
任何帮助,将不胜感激。谢谢!!
1 个解决方案
#1
0
As of right now, WooCommerce subscriptions doesn't support adding fees to recurring totals.
截至目前,WooCommerce订阅不支持向经常性总计增加费用。
#1
0
As of right now, WooCommerce subscriptions doesn't support adding fees to recurring totals.
截至目前,WooCommerce订阅不支持向经常性总计增加费用。