VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: tanjapika on November 28, 2016, 12:41:39 PM

Title: How to show prices with taxes in percent (%) on frontend
Post by: tanjapika on November 28, 2016, 12:41:39 PM
Hello

Is there a possibility that in the presentation of the product appears TAX in the PERCENT (%) - not only in value amount, like :
- SALES PRICE (WITH xx % TAX) in the final price of the product
or
- TAX AMOUNT (xx % TAX)

The variable of tax in % would be dragged from the Taxes & Calculation Rules (in the Shop Products Configuration).

I use Joomla version, 3.6.4. and VirtueMart 3.0.14

Can someone help me, please?
Title: Re: How to show prices with taxes in percent (%) on frontend
Post by: mcmannehan2002 on November 28, 2016, 13:48:50 PM
Please read this first:
http://forum.virtuemart.net/index.php?topic=79799.0 (http://forum.virtuemart.net/index.php?topic=79799.0)
Title: Re: How to show prices with taxes in percent (%) on frontend
Post by: tanjapika on November 28, 2016, 14:11:20 PM
I apologize.

I have supplemented the question:
I use Joomla version 3.6.4. and VirtueMart 3.0.14.
Title: Re: How to show prices with taxes in percent (%) on frontend
Post by: mcmannehan2002 on November 28, 2016, 14:33:22 PM
Quote from: tanjapika on November 28, 2016, 14:11:20 PM
I apologize.

I have supplemented the question:
I use Joomla version 3.6.4. and VirtueMart 3.0.14.
You very welcome apologize accepted...  :D  ;)

I recommand, you should do an update to Virtuemart 3.0.18, there are a security updates too.

If you only have one tax/vat than u can do by overide the languages constant
COM_VIRTUEMART_PRODUCT_TAX_AMOUNT with Tax amount (xx%)
and/or
COM_VIRTUEMART_PRODUCT_SALESPRICE with Sales price (xx%)

In  Joomla Admin go to Extensions -> Language(s) -> Overrides
Click new and search for "constant" than add the new text.

Another resolution is, to add code for Virtuemart in the "html" folder of your template, but you should be familiar with that.  8)
Title: Re: How to show prices with taxes in percent (%) on frontend
Post by: tanjapika on November 28, 2016, 15:55:10 PM
Thank you.

I´ve updated Virtuemart to version 3.0.18.
I´ve also upgrade the shop to slovenian languages.

Where can I find this two files?
COM_VIRTUEMART_PRODUCT_TAX_AMOUNT
COM_VIRTUEMART_PRODUCT_SALESPRICE

But I think I´ll have soon the problem with different taxes.

So I think I have to add the code in html  :-\, but how and where?
In old versions for Joomla 1,5 this resolution was done without changes ;)
Title: Re: How to show prices with taxes in percent (%) on frontend
Post by: mcmannehan2002 on November 28, 2016, 16:22:03 PM
Quote from: tanjapika on November 28, 2016, 15:55:10 PM
Where can I find this two files?
COM_VIRTUEMART_PRODUCT_TAX_AMOUNT
COM_VIRTUEMART_PRODUCT_SALESPRICE
This aren't two file this are two constants for the languages.
How to do override languages constant for Joomla 3.x:
https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla (https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla)

Quote from: tanjapika on November 28, 2016, 15:55:10 PM
But I think I´ll have soon the problem with different taxes.
So I think I have to add the code in html  :-\, but how and where?
If you not familiar with that you need to learn about Templates and Joomla and PHP-Programming.
Here is an example: https://www.joomlashack.com/blog/joomla-templates/customize-your-joomla-templates-by-learning-overrides/ (https://www.joomlashack.com/blog/joomla-templates/customize-your-joomla-templates-by-learning-overrides/)
Any way you can PM me for further information.

Quote from: tanjapika on November 28, 2016, 15:55:10 PM
In old versions for Joomla 1,5 this resolution was done without changes ;)
Joomla 1.5 is from the stone age...  ;)