Author Topic: how to show VAT percentage on product page and/or category  (Read 272 times)

stawebnice

  • Jr. Member
  • **
  • Posts: 242
  • What does not kill you, makes you stronger...
    • StaWEBnice - www stránky, seo optimalizace a copywriting
  • Skype Name: peta_ze_sklepa
  • VirtueMart Version: 3.2.14
how to show VAT percentage on product page and/or category
« 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
 

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3062
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: how to show VAT percentage on product page and/or category
« Reply #1 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: how to show VAT percentage on product page and/or category
« Reply #2 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
regards
A

Joomla 3.9.20
php 7.3