Skip to content
Advertisement

WooCommerce cart subtotal: Display ‘free’ instead of ‘0,00’

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?

JavaScript

Advertisement

Answer

Try to use the following that should display “Free” when the product price is equal to Zero:

JavaScript

Code goes in functions.php file of your active child theme (or active theme). It should works.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement