Price Display with Tax in Mini-Cart - by ZoBabe

This topic has 2 replies, 2 voices, and was last updated 7 years, 10 months ago ago by Eva Kemp

  • Avatar: ZoBabe
    ZoBabe
    Participant
    May 16, 2016 at 09:41

    The price displays correctly everywhere else (including tax) except for the mini-cart. I’ve tried activating storefront, and that fixes it. So the problem appears to be theme specific.
    Can you point in right direction for what file needs to updated to display the mini-cart prices correctly?
    Thanks!
    Z

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    May 16, 2016 at 12:07

    Hello,

    You need edit the file wp-content/themes/classico/framework/woo.php and replace the code in line 773:
    $product_price = get_option( 'woocommerce_display_cart_prices_excluding_tax' ) == 'yes' || $woocommerce->customer->is_vat_exempt() ? $_product->get_price_excluding_tax() : $_product->get_price();

    with this code:
    $product_price = $_product->get_price_including_tax();

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.