• Resolved sevans917

    (@sevans917)


    I have a store that does not allow user accounts, and provides free shipping as the only shipping option. I enter prices exclusive of tax, collect sales tax based on shipping state, and I use these shipping options settings:
    – DO NOT Enable the shipping calculator on the cart page
    – DO Hide shipping costs until an address is entered

    The result: Tax shows $0 in the cart, before the customer gets to enter an address, and only updates to the actual sales tax amount AFTER the shipping address is entered in checkout. This pre-calculation of $0 sales tax is misleading.

    Using CSS I tried but failed to hide the TAX row from the cart, while retaining the tax row in checkout. Is there a way to do this with CSS (until Woo addresses this problem with a real setting)? Does Woo realize this is a problem?

    I propose retaining the tax row but leaving the “$0” out, perhaps replaced with a hyphen or “tbd”. This way, the user isn’t mislead to believing the tax rate is $0. Maybe there’s a PHP snippet to do this?…if $0, print nothing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @sevans917 ,

    I understand your point.

    In my test to reproduce the problem, I could not get the “zero” tax rate on the cart page. As I am unable to add shipping address on the cart page, the tax rate is also not possible to be included on the cart page.

    However, if you still see the zero rate on the cart page you can use this CSS in your wp-admin > Appearance > Customize > Additional CSS field to hide it –

    .woocommerce-cart .cart_totals tr.tax-rate {
        display: none;
    }

    If this does not work, can you please share your site URL so that I can see the cart page sttructure?

    Thank you ??

    Thread Starter sevans917

    (@sevans917)

    Hello @rur165 ,

    Thanks, I appreciate your reply.

    The CSS you provided did not work in my site (Astra theme), but I was able to modify it to meet my immediate needs. This makes the amount area blank, but keeps the Tax row and label.

    .woocommerce-cart .cart_totals tr.tax-total .woocommerce-Price-amount {
        display: none;
    }

    BTW I’ve noticed that upon first time add to cart -> view cart, the Tax row label simply says “Tax”, but if you move to checkout, make no entries, then return to cart, the label is appended with “(estimated for the United States (US))”. If you go shopping again then return to the cart, that appended message is still there. I don’t think this makes sense for the US, as there is no national sales tax.

    Hello @sevans917 ,

    Would you mind sharing the site URL so that I can experience the issue and also check the structure of the cart page?

    It will allow me to suggest the correct CSS to hide the whole row of tax information.

    Looking forward to your response.

    Thank you ??

    Hi there,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sales Tax $ amount in cart before shipping address enterd’ is closed to new replies.