i am searching for a solution to display 'free' instead of €0,00 in the WooCommerce Cart/Checkout.
I know, there is a snippet for the Single Produkt itself, but is there a possibillity to change the price label even in the Subtotal/total calulation on the checkout/cart page?
add_filter( 'woocommerce_get_price_html', 'price_free_zero_empty', 9999, 2 );
function price_free_zero_empty( $price, $product ){
if ( '' === $product->get_price() || 0 == $product->get_price() ) {
$price = '<span class="woocommerce-Price-amount amount">FREE</span>';
}
return $price;
}