Display custom delivery choice on Woocommerce Order totals table
问题 Based on "Update fee dynamically based on radio buttons in Woocommerce checkout" answer code, I have been able add a custom dynamic fee applied on customer delivery choice (with custom delivery option choices) . Here is the working code that I have adapted for my needs: add_action( 'woocommerce_cart_calculate_fees', 'add_delivery_fee', 20, 1 ); function add_delivery_fee( $cart ) { $domain = 'woocommerce'; $NipostFST = '2000'; $NIPOSTSUB = '250'; if ( is_admin() && ! defined( 'DOING_AJAX' ) )