I have a multilingual site and would like to have translations for the 'Calculation Rule name' value for all languages (eg: VAT 21%, BTW 21%, MWst 21%).
I tried this by adding constants to the ini files but this does not seem the way to go ?
Thanks in advance for any suggestions!
displayed where?
In the cart I now see 'Tax 21%' (which is the name I gave to the tax rule) for each language.
I would like this to be specific to the language selected.
you need prob to do something in an over ride for components\com_virtuemart\views\cart\tmpl\default_pricelist.php
<?php if (VmConfig::get ('show_tax')) {
$tax = vmText::_ ('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT');
if(!empty($this->cart->cartData['VatTax'])){
if(count($this->cart->cartData['VatTax']) < 2) {
reset($this->cart->cartData['VatTax']);
$taxd = current($this->cart->cartData['VatTax']);
$tax = shopFunctionsF::getTaxNameWithValue($taxd['calc_name'],$taxd['calc_value']);
}
}
?>
replace with a vmText
maybe
$tax = vmText::_ ('COM_VIRTUEMART_CART_SUBTOTAL_TAX_AMOUNT').' '.$taxd['calc_value'];
Thanks for taking the time to respond, going to check this out!