Home Forums Basel support forum No price on product variations when attribute has one value

No price on product variations when attribute has one value

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #83280

    devraf
    Participant

    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

    #83300

    Artem Temos
    Keymaster

    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

    #83356

    devraf
    Participant

    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

    #83374

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out!

Viewing 4 posts - 1 through 4 (of 4 total)