Forked from thegdshop/Only display minimum price for WooCommerce variable products
Created
September 22, 2017 19:13
-
-
Save OscarAbadFolgueira/db5a87c42aff015106e41ec5b7ee5310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Only display minimum price for WooCommerce variable products | |
**/ | |
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); | |
function custom_variation_price( $price, $product ) { | |
$price = ''; | |
$price .= woocommerce_price($product->get_price()); | |
return $price; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment