News:

Looking for documentation? Take a look on our wiki

Main Menu

how to show VAT percentage on product page and/or category

Started by stawebnice, August 14, 2020, 13:04:16 PM

Previous topic - Next topic

stawebnice

Hi,

please, is there a way to show VAT percentage on product detail page in case you have two in the eshop? (e.g. food is 15% and cosmetics/clothes 21% in CZ)

Question is how to show % from VAT setting instead of classic Price incl. VAT price label... ???
or at least include the % into VAT label?

I am talking about eshop selling only in our country /so not dealing with MOSS/

Thanks,

Petra
 

Jörgen

It is possible, but You have to make the calculation in your template overrides I guess prices.php. I made some changes that involved css and language constant changes to add, ( ), around the vat amount. But I have not calculated the percentage.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AH

Try looking in the data returned for the product

$this->product->prices

$this->product->prices["VatTax"]

You will have an array with the details of your applicable Tax for this item
Regards
A

Joomla 4.4.5
php 8.1