Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    There is no single tax rate for each product, products can have multiple. But you could output something based on tax class?

    Adapt https://gist.github.com/mikejolley/4150218 to append to prices.

    Thread Starter cavtec

    (@cavtec)

    How would I go about outputting the tax class, or rather the label of the tax class that is associated with that product? What is the function/implementation for that?

    So on the product page, I’m looking to display the name of the tax that is being used on that product, next to the price. I dont need to show whether it is incl or excl VAT etc…

    Price Tax Name

    Examples:
    £100 Zero Rated

    £60 VAT

    My settings:
    Prices Entered With Tax: Yes
    Display Prices in the Shop: Including tax
    Display Prices During Basket and Checkout: Including tax

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter cavtec

    (@cavtec)

    Do I add this to my Themes function.php file?

    Do I need to echo this on the product page?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    theme functions.php only.

    Thread Starter cavtec

    (@cavtec)

    Thanks for the speedy reply.

    When I add that code to the Functions.php file, it pretty much bricks the website… :-/

    Not sure how or why…?

    Update:

    I tried removing “add_filter( ‘woocommerce_get_price_html’, ‘price_plus_vat’ );” from the functions.php and it doesnt brick the site anymore, but i cant’t see what The code does?

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Did you wrap it with PHP tags? Don’t nest PHP tags.

    janukacs

    (@janukacs)

    In my website I have added product with cost $100, and I have added tax rule only for AU customers 10% (tax including in product) in cart its shows as $100 (including $10.00).

    I need to show cost as $100 for other country’s customers as a $100 (including $00.00). but now it’s shows as a $90(including $00.00) for other countries. how can I fixed this.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Display the Tax Rate of a product (Or its variation) next to the Price?’ is closed to new replies.