WooCommerce: Get the cart item quantity of a customized product only
To get the cart item quantity for your customized product only use the following:
if (!empty( $cart_item['custom_text'] ) ) { $surcharge = 1; $quantity = $cart_item['quantity']; WC()->cart->add_fee( 'Customization', ( $surcharge * $quantity ), true, '' );}
It should works as you are expecting