• Resolved wordtalk112

    (@wordtalk112)


    Hello

    I need help with changing the format of my CART area.

    Ive included an image HERE for your reference.

    Im attempting to display my products pricing INCLUDING GST and at the same time have the total and tax in the cart displayed on separate lines.

    The products have the Tax included within the shop but not in the cart. When I included the product tax in cart, the total displays like this $265.00(inc TAX)

    To have it display like this Total: $265.00
    Tax: $26.50
    You need to exclude tax from the product in cart/checkout….which I dont want to do.

    Ive already modified .PHP for checkout.

    My question is, which .PHP file would I need to change and what lines to display products including tax in the catt and have the total and tax on seperate lines within the cart.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    Thanks for that detailed description!

    I’m not a developer, so I don’t know exactly which lines you’d need to change. However, I can tell you that you will need to modify cart.php as well as likely cart-totals.php, from the /cart section of the templates:
    https://github.com/woocommerce/woocommerce/tree/3.8.0/templates/cart

    I’ll leave this thread open for a bit to see if anyone else can chime in with more information.

    Thread Starter wordtalk112

    (@wordtalk112)

    Hey Hannah thanks for the reply, I did modify the listed files, but I think I might be on to something….I guess we will see if the website explodes or not.

    What I can do is leave the option at exclude tax at CART and CHECKOUT, which will show the tax and total on a separate line.

    Now what I need is the individual products in Cart and Checkout to display there value with tax included

    I identified this piece of code in the in the review-order.php

    IMAGE HERE

    The question is can a (IF) argument be added or some other form of argument added which will direct the individual product values to to VALUE including tax as opposed to value excluding tax.

    Unfortunately Im not a developer nor do I know which PHP files influence the values and display when the Include / Exclude tax option in Woocommerce is initiated.

    With any luck a Developer can give some insight.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change product price and Tax/total’ is closed to new replies.