Add a custom product calculated price to Woocommerce cart
问题 In woocommerce I have added an extra text field before add to cart button to add custom charge on product purchase. This plugin will add extra text field to single product page and calculates total plus the extra charge. My problem is that I cant add custom cart totals and the extra charge add before totals I tried woocommerce_cart_calculate_fees but no luck it only show $0 in totals PHP code: /** * Check if woocommerce is active and or installed. */ if ( class_exists( 'WooCommerce' ) || in