No price on product variations when attribute has one value
-
Hi,
I’ve noticed on product page when variation is set up for two attributes and one of them has only one value then price is not showing up.
For example in my case:
1 attribute: Size (1 Value)
2 attribute: Colour (5 Values)
Variations created from attributes. Prices set up for variations, but not show up on product page.
Only variation description is showing.
Could you help me with it please?
Best regards,
Rafal
Hello,
Could you please check how it works with some default WordPress theme like twentysixteen to understand is it our theme issue or not?
Regards
Hi,
I’ve checked on WordPress theme twentysixtenn and problem still exist.
But already found solution for it! It’s look like standard Woocommerce option when the price in variation is the same.
Just added this code to functions.php
add_filter('woocommerce_show_variation_price', function() { return TRUE;});
Problem sorted!
Best regards
Rafal
Great, we are glad that you sorted it out!