we can show on product cards the price INCL taxes

The prices are all added without taxes (net) and we setup everything correct so far in the backend. On simple products like BIO ADVENTKAFFEE it works – but on variable products it shows always the net price in the product card for the “from Price”
function adjust_variation_prices_from($price, $product, $min_or_max, $for_display) {
    $for_display = true;
    $prices = $product->get_variation_prices($for_display);
    $price  = 'min' === $min_or_max ? current($prices['price']) : end($prices['price']);

    return $price;
}
add_filter('woocommerce_get_variation_price', 'adjust_variation_prices_from', 10, 4);

Leave a Reply

Your email address will not be published. Required fields are marked *