WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » [Resolved] Price not showing when variations have the same price

[Resolved] Price not showing when variations have the same price

Viewing 2 replies - 1 through 2 (of 2 total)
  • it’s supposed to display something like “from (lowest price” above the selection, but I guess your theme has that part removed. When all the prices are the same the “from” text is not displayed, and it just shows the price as there’s no need to change the displayed price depending on the options selected when they’re all the same, the price in the lower spot never gets displayed.

    Problem is essentially with your theme.

    Nope, I tried with the default theme on another wp installation, anyway, I changed line 1524 of class-wc-product.php

    From this:
    'price_html'=> $this->min_variation_price != $this->max_variation_price ? '<span class="price">' . $variation->get_price_html() . '</span>' : '',

    To this:
    'price_html' => '<span class="price">' . $variation->get_price_html() . '</span>'

    It will be useful if they put it as an option in the admin panel.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Price not showing when variations have the same price’ is closed to new replies.
Skip to toolbar