Remove high price in variable pricing display
-
Hi, I just want to show the lowest price, I have seen on many sites to use the below code, but all these sources are nearly a year old and the code doesn’t work for me… have tried placing in functions and the woocomemerce config file, any other ideas?
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); function custom_variation_price( $price, $product ) { $price = ''; if ( !$product->min_variation_price || $product->min_variation_price !== $product->max_variation_price ) { $price .= '<span class="from">' . _x('From', 'min_price', 'woocommerce') . ' </span>'; $price .= woocommerce_price($product->get_price()); } return $price; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Remove high price in variable pricing display’ is closed to new replies.