cancel
Showing results for 
Search instead for 
Did you mean: 

Display Tax Rate on Product Detail Page

SOLVED

Display Tax Rate on Product Detail Page

I have many products that are zero rated for VAT and a few that use standard rate so it's important I make this clear on the product detail page. How do I display the tax rate just after the price of a product?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Display Tax Rate on Product Detail Page

Just in case anyone else needs this. The following code placed in price.phtml does the job for me. Simple really.

 

<?php echo $_product->getAttributeText('tax_class_id') ?>

View solution in original post

6 REPLIES 6

Re: Display Tax Rate on Product Detail Page

Hello,

 

To show the rate I believe it will be custom development. 

 

But in System > Configuration > Tax > Price Display Settings > Display Product Prices In Catalog

You can change this to show both Including & Excluding Tax

 

Rebecca Troth

Problem solved? Click Accept as Solution!
Follow me on twitter:@RebeccaBrocton | wearejh.com

Re: Display Tax Rate on Product Detail Page

Thank you for your reply but I'm pretty sure there must be a way to display this without custom development. I'm aware of being able to show with and without tax but it makes things really messy when most items are zero rated.

Re: Display Tax Rate on Product Detail Page

Just in case anyone else needs this. The following code placed in price.phtml does the job for me. Simple really.

 

<?php echo $_product->getAttributeText('tax_class_id') ?>

Re: Display Tax Rate on Product Detail Page

Hey, do you know how this works with Magento 2.0?

Re: Display Tax Rate on Product Detail Page

I also would like to know how this works in Magento 2

Re: Display Tax Rate on Product Detail Page

This doesn't actually solve the problem, this just shows the name of the Tax rate group the product is in. This doesn't necessarily show the tax rate that is actually used.