[Skip to main content](#vessel-content)

#   New language variable in invoice backend no work

##

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

12 years 1 month ago [\#176933](#176933) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[New language variable in invoice backend no work](/forum/35-orders-management/872586-new-language-variable-in-invoice-backend-no-work#176933 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hi,  I've edited the order / invoice.php file for backend template to display a new variable in the invoice:  I've added this:  As you can see, I've created the language variable HIKASHOP&#95;IMPONIBILE that I've translated into the language override.  The problem is that this variable is not translated. I've tryed also a test changing HIKASHOP&#95;IMPONIBILE with the variable VAT (that is a default variable of hikashop, but even in this case in the invice output it's shown as HIKASHOP&#95;IMPONIBILE (or VAT in my other test) and so no variables are translated.  At this point I suppose that something is wrong with my code?  Thanks in advice.")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

Hi,

I've edited the order / invoice.php file for backend template to display a new variable in the invoice:

I've added this:
Code:

&lt;tr&gt; &lt;td colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;/td&gt; &lt;td class="key"&gt; &lt;label&gt; &lt;?php echo JText::_( 'HIKASHOP_IMPONIBILE' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;format($this-&gt;order-&gt;order_full_price-$taxes,$this-&gt;order-&gt;order_currency_id); ?&gt; &lt;/td&gt; &lt;/tr&gt;

As you can see, I've created the language variable HIKASHOP_IMPONIBILE that I've translated into the language override.

The problem is that this variable is not translated. I've tryed also a test changing HIKASHOP_IMPONIBILE with the variable VAT (that is a default variable of hikashop, but even in this case in the invice output it's shown as HIKASHOP_IMPONIBILE (or VAT in my other test) and so no variables are translated.

At this point I suppose that something is wrong with my code?

Thanks in advice.

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MjU4Ni1uZXctbGFuZ3VhZ2UtdmFyaWFibGUtaW4taW52b2ljZS1iYWNrZW5kLW5vLXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 1 month ago [\#176953](#176953) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New language variable in invoice backend no work](/forum/35-orders-management/872586-new-language-variable-in-invoice-backend-no-work#176953 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hi,  I've edited the order / invoice.php file for backend template to display a new variable in the invoice:  I've added this:  As you can see, I've created the language variable HIKASHOP&#95;IMPONIBILE that I've translated into the language override.  The problem is that this variable is not translated. I've tryed also a test changing HIKASHOP&#95;IMPONIBILE with the variable VAT (that is a default variable of hikashop, but even in this case in the invice output it's shown as HIKASHOP&#95;IMPONIBILE (or VAT in my other test) and so no variables are translated.  At this point I suppose that something is wrong with my code?  Thanks in advice.")*

Hi,

The code is correct so the problem must be with your translation override.
If you turn on the "debug mode" and "language debug" options of the Joomla configuration, you should see the debug data at the bottom of each page and on that page, you should get a debug of the translation file of HikaShop and the override file and it will tell you if there is a problem with them and if so, on which line is the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MjU4Ni1uZXctbGFuZ3VhZ2UtdmFyaWFibGUtaW4taW52b2ljZS1iYWNrZW5kLW5vLXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

12 years 1 month ago -  12 years 1 month ago [\#177060](#177060) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[New language variable in invoice backend no work](/forum/35-orders-management/872586-new-language-variable-in-invoice-backend-no-work#177060 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hi,  I've edited the order / invoice.php file for backend template to display a new variable in the invoice:  I've added this:  As you can see, I've created the language variable HIKASHOP&#95;IMPONIBILE that I've translated into the language override.  The problem is that this variable is not translated. I've tryed also a test changing HIKASHOP&#95;IMPONIBILE with the variable VAT (that is a default variable of hikashop, but even in this case in the invice output it's shown as HIKASHOP&#95;IMPONIBILE (or VAT in my other test) and so no variables are translated.  At this point I suppose that something is wrong with my code?  Thanks in advice.")*

[strike]First of all, I've hanged my variable with "TAXES" to be sure that the issue wasn't related to the name of the variable for any reason.

Then I've activated debugs and I've found this issue (that is not related to my problem anyway): JROOT/language/en-GB/en-GB.com_hikashop.ini : error(s) in line(s) 2110, 2112

There is an error in th english translation file:

COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY="Hello administrator,

A new user '%s', username '%s', has registered at %s."

Anyway then I found this message:

**Untranslated Strings**

\# JROOT/libraries/legacy/view/legacy.php

TAXABLE="TAXABLE"

What's wrong? It works in frontend, just doesn't work in backen invoice.[/strike]

EDIT: my fault, I was browsing the backend in english but the traslation of variable was only in italian. That's the problem. Sorry...

Anyway the same issue I've found in english language is also present in italian ffile:
JROOT/language/it-IT/it-IT.com_hikashop.ini : errore(i) alla(e) linea(e) 2110, 2112

Thanks anyway!

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Last edit: 12 years 1 month ago by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MjU4Ni1uZXctbGFuZ3VhZ2UtdmFyaWFibGUtaW4taW52b2ljZS1iYWNrZW5kLW5vLXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 4 weeks ago [\#177062](#177062) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New language variable in invoice backend no work](/forum/35-orders-management/872586-new-language-variable-in-invoice-backend-no-work#177062 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.6  Hi,  I've edited the order / invoice.php file for backend template to display a new variable in the invoice:  I've added this:  As you can see, I've created the language variable HIKASHOP&#95;IMPONIBILE that I've translated into the language override.  The problem is that this variable is not translated. I've tryed also a test changing HIKASHOP&#95;IMPONIBILE with the variable VAT (that is a default variable of hikashop, but even in this case in the invice output it's shown as HIKASHOP&#95;IMPONIBILE (or VAT in my other test) and so no variables are translated.  At this point I suppose that something is wrong with my code?  Thanks in advice.")*

The problem with that translation is that you're not able to have several lines for the same translation.
By default, that translation is like that in HikaShop: Code:

COM_USERS_EMAIL_REGISTERED_NOTIFICATION_TO_ADMIN_BODY="Hello administrator,\r\n\r\nA new user '%s', username '%s', has registered at %s."

So please correct it.
All the translations after that line will be ignored by the translation system, so it would well explain the problem.

Also note that if you're customizing the view file, you can directly enter the text there if your website is not multilingual. No need to use a translation override that case.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MjU4Ni1uZXctbGFuZ3VhZ2UtdmFyaWFibGUtaW4taW52b2ljZS1iYWNrZW5kLW5vLXdvcms/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
