I created a custom fee on Woocommerce based on a user plan. I did something like this on my functions.php
:
function my_discount_based_on_user_membership( $cart ) {
$discount = 10;
$cart->add_fee( "My Discount", -$discount );
}
add_action( 'woocommerce_cart_calculate_fees', 'my_discount_based_on_user_membership', 20, 1 );
Let's say that this fee has the value of -$10. I want that -$10 have another color, like red for example. Is there a way of set a CSS class for a custom fee in Woocommerce? How can I target this element?
Since I could have another discounts later, target the element position using JS or CSS probably is not a good idea. Any advice?