• Resolved pascal.k

    (@pascalklaeres)


    Hi. On the product archive page or shop page you can show the lowest price with a ?from“ label. For simple products it seems fine, but for variable products I found an issue. The tax will not be calculated and you get the output without tax, also when you have selected “tax included” in your WooCommerce settings.

    Here’s the solution. Please add this to your next update.

    On file “/tier-pricing-table/src/Frontend/CatalogPriceManager.php“ on line 96 and 97 add a “true” to the get_variation_price function. Heres what this looks like:

    $maxPrice  = $product->get_variation_price( 'max', true );
    $minPrices = array( $product->get_variation_price( 'min', true ) );

    https://woocommerce.wp-a2z.org/oik_api/wc_product_variableget_variation_price/

    Thank you for the update. Regards, Pascal

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Wrong Price Displaying on Archive Page’ is closed to new replies.