• Resolved rcbunker

    (@rcbunker)


    Hi, is there a way to show one price on the product catalogue for one product that has a variation in price?

    For example when i look at the catalogue my one products price is 99.99-129.99 – is there a way to just show the lower cost only?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); 
    
    function custom_variation_price( $price, $product ) { 
    
         $price = '';
    
         $price .= wc_price($product->get_price()); 
    
         return $price;
    }

    Add above code in your active theme’s functions.php file

    Thread Starter rcbunker

    (@rcbunker)

    This worked perfect, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Product Variation Pricing Range’ is closed to new replies.