skip to Main Content

I’ve used woodmart theme for my website. These are all variable products. It is showing price like range value. but the price in A section must be printed like in b section. what I’ve to change here to do so.
here is the sample output

I need output like this, these were also variable products

here is the image of the desired output

While changing the weight by clicking the box the price needs to be updated dynamically ideally the selected weight’s respective price have to be displayed instead of a range of prices

waiting for a response…

2

Answers


  1. If you only need to hide the price range for that particular product, you can use this CSS snippet. Replace 1234 with your actual product ID.

        .postid-1234 p.price {
           display:none;
           }
    

    To disable the price range for all variable products, add this snippet to your child theme’s function.php file:

    add_filter( 'woocommerce_variable_price_html', 'jean_variation_price', 9999, 2 );
      
    function jean_variation_price( $price, $product ) {
       return ;
    }
    
    Login or Signup to reply.
  2. I have the same issue with this theme.
    It appears Woodmart hasn’t supported this functionality.
    You need to contact the theme author or try other ways to implement it by yourself.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search