VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: stawebnice on August 14, 2020, 13:04:16 PM

Title: how to show VAT percentage on product page and/or category
Post by: stawebnice on August 14, 2020, 13:04:16 PM
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
 
Title: Re: how to show VAT percentage on product page and/or category
Post by: Jörgen on August 14, 2020, 13:27:12 PM
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
Title: Re: how to show VAT percentage on product page and/or category
Post by: AH on August 14, 2020, 14:02:46 PM
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