Skip to content

Instantly share code, notes, and snippets.

@Veesibility
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Veesibility/033c7bb567e213e7165d to your computer and use it in GitHub Desktop.
Save Veesibility/033c7bb567e213e7165d to your computer and use it in GitHub Desktop.
Woocommerce - Show min price including Tax for variations rather than Min/Max Prices
/** This code should be added to functions.php of your theme **/
/* Woocommerce - Show min price including Tax for variations rather than Min/Max Prices */
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);
function custom_variation_price( $price, $product ) {
$price = '';
$price .= woocommerce_price($product->get_price_including_tax());
return $price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment