How to translate tax rates ?

  • Posts: 25
  • Thank you received: 0
9 years 8 months ago #224100

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.6.6

Hi,

Is it possible to translate the tax rates ?
I created different tax rates (i.e. VAT 4%, VAT 12%, ...) and I want to have the detailed tax rates shown at the end of orders. This works fine, but I don't know how to translate "VAT 4%" ...

Thank you in advance for your answer.
Mireille

Please Log in or Create an account to join the conversation.

  • Posts: 84233
  • Thank you received: 13674
  • MODERATOR
9 years 8 months ago #224109

Hi,

There is no system to translate the tax rates.
You would have to edit all the places where tax_namekey is displayed and add a JText::_() on it in order to be able to add translation overrides on the namekey of the rate.
It's not a problem if your a developer.
For example, for the checkout cart display, you would edit the file "cart" of the view "checkout" via the menu Display>Views and change the line:
<?php echo $tax->tax_namekey; ?>
to:
<?php echo JText::_($tax->tax_namekey); ?>

Then, if your namekey is VAT, you could just add such translation override:
VAT="TVA"

The following user(s) said Thank You: mireille76

Please Log in or Create an account to join the conversation.

  • Posts: 25
  • Thank you received: 0
9 years 8 months ago #224231

Hi,
Thank you, this worked fine !
Have a nice day and thanks gain,
Mireille

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum