Cart dropdown prices are ex tax - by xkitr

This topic has 2 replies, 2 voices, and was last updated 7 years, 9 months ago ago by Jack Richardson

  • Avatar: xkitr
    xkitr
    Participant
    July 8, 2016 at 14:33

    I have my prices entered as ex-tax and have my woocommerce setting to display prices as inc tax. The drop down that appears for the cart when you hover your mouse over it is showing prices as ex tax. This needs to show as inc tax. How can this be fixed?
    thanks

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 8, 2016 at 16:00

    Hello,

    You need to edit the wp-content/themes/royal/framework/woo.php file, change code in line 1302 $product_price = get_option( 'woocommerce_display_cart_prices_excluding_tax' ) == 'yes' || $woocommerce->customer->is_vat_exempt() ? $_product->get_price_excluding_tax() : $_product->get_price();
    to the following:
    $product_price = $_product->get_price_including_tax();

    Make changes in child theme https://codex.wordpress.org/Child_Themes not to lose changes after theme update.

    Best regards,
    Jack Richardson.

  • 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.