functions.php
file of your active theme.functions.php
file:
add_filter('woocommerce_show_variation_price', function() {
return true;
});
The code uses woocommerce_show_variation_price
to force showing all variation prices, even if they’re the same.
Customizing WooCommerce to fit your needs can improve the shopping experience. This simple tweak ensures transparent pricing for all variations, aiding customers in their decisions.
Remember, make changes in a child theme or through a custom plugin to avoid losing modifications during theme updates.
Ready to try it out? Share your WooCommerce tweaks or questions in the comments!