• torbent

    (@torbentschechnegmailcom)


    Hello,
    I have an issue with product variations. In my shop neither the price in the backend is shown, nor the price on the frontend. But each variation has a price.

    https://d.pr/i/kfVx

    https://d.pr/i/WGAK

    https://d.pr/i/VuTI

    I read that once the price of the variations are the same, WooCommerce will not show them. I tried to add one of those code fragments, but neither of them work:

    add_filter( 'woocommerce_show_variation_price', '__return_true' );

    // Display Price For Variable Product With Same Variations Prices
    add_filter('woocommerce_available_variation', function ($value, $object = null, $variation = null) {
        if ($value['price_html'] == '') {
            $value['price_html'] = '<span class="price">' . $variation->get_price_html() . '</span>';
        }
        return $value;
    }, 10, 3);

    I am bit puzzled why the backend does not show any price either. I have other WooCommerce installations with variable products and I can always see a price in the backend.

    Does anybody can help?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Product Variations – no price visible on frontend and backend’ is closed to new replies.