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

#   How to translate {VAR:billing\_address.address\_title} in email templates

##

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

8 years 2 months ago [\#298170](#298170) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  *[How to translate {VAR:billing\_address.address\_title} in email templates](/forum/10-translation/895765-how-to-translate-var-billing-address-address-title-in-email-templates#298170 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12  Hi,  in our german language shop we want to salute the costumer by title and lastname. So I've inserted {VAR:billing&#95;address.address&#95;title} and {VAR:billing&#95;address.address&#95;lastname} in the notification email template. Unfortnately {VAR:billing&#95;address.address&#95;title} is not translated, so the var is replaced with 'Mr' instead of 'Herr'. Is there a way to get the translated value?  A second question: If possible, we want salute the costumer by title and lastname in checkout / end.php too. But I can't find a way to get this values. Can you please help my to get this values?  Thanks")* was created by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")*

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12

Hi,

in our german language shop we want to salute the costumer by title and lastname. So I've inserted {VAR:billing_address.address_title} and {VAR:billing_address.address_lastname} in the notification email template. Unfortnately {VAR:billing_address.address_title} is not translated, so the var is replaced with 'Mr' instead of 'Herr'. Is there a way to get the translated value?

A second question: If possible, we want salute the costumer by title and lastname in checkout / end.php too. But I can't find a way to get this values. Can you please help my to get this values?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5NTc2NS1ob3ctdG8tdHJhbnNsYXRlLXZhci1iaWxsaW5nLWFkZHJlc3MtYWRkcmVzcy10aXRsZS1pbi1lbWFpbC10ZW1wbGF0ZXM/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: 86583
- Thank you received: 14324
-
-

8 years 2 months ago [\#298171](#298171) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to translate {VAR:billing\_address.address\_title} in email templates](/forum/10-translation/895765-how-to-translate-var-billing-address-address-title-in-email-templates#298171 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12  Hi,  in our german language shop we want to salute the costumer by title and lastname. So I've inserted {VAR:billing&#95;address.address&#95;title} and {VAR:billing&#95;address.address&#95;lastname} in the notification email template. Unfortnately {VAR:billing&#95;address.address&#95;title} is not translated, so the var is replaced with 'Mr' instead of 'Herr'. Is there a way to get the translated value?  A second question: If possible, we want salute the costumer by title and lastname in checkout / end.php too. But I can't find a way to get this values. Can you please help my to get this values?  Thanks")*

Hi,

The tag {VAR:billing_address.address_title} will directly use the value from the database, without any processing.
So you can't use that.
You need to use PHP instead.
For example: Code:

&lt;?php echo JText::_('HIKA_TITLE_'.strtoupper($data-&gt;cart-&gt;billing_address-&gt;address_title)); ?&gt;

For the end page, it's sure is possible too. But you'll need to customize the view file used there with custom PHP code. It will depend on how your checkout is configured, which payment method you're using and how you've configured it, so I can't give a precise answer without knowing that.

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

- **[smart web](/forum/user/52782-smart-web "View smart web's Profile")**
- [![smart web's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/52782-smart-web "View smart web's Profile") Topic Author
- [ Offline](/forum/user/52782-smart-web)

Less More

- Posts: 65
- Thank you received: 10
-
-

8 years 2 months ago [\#298196](#298196) by [smart web](/forum/user/52782-smart-web "View smart web's Profile")  Replied by *[smart web](/forum/user/52782-smart-web "View smart web's Profile")* on topic *[How to translate {VAR:billing\_address.address\_title} in email templates](/forum/10-translation/895765-how-to-translate-var-billing-address-address-title-in-email-templates#298196 "-- HikaShop version -- : 3.5.1 -- Joomla version -- : 3.8.12  Hi,  in our german language shop we want to salute the costumer by title and lastname. So I've inserted {VAR:billing&#95;address.address&#95;title} and {VAR:billing&#95;address.address&#95;lastname} in the notification email template. Unfortnately {VAR:billing&#95;address.address&#95;title} is not translated, so the var is replaced with 'Mr' instead of 'Herr'. Is there a way to get the translated value?  A second question: If possible, we want salute the costumer by title and lastname in checkout / end.php too. But I can't find a way to get this values. Can you please help my to get this values?  Thanks")*

Hi Nicolas,

Thank you very much, it works fine with php code.

I've talked with my client because the end page. We leave it unpersonal with a standard text, because the more complicated idea would not bring a big advantage.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzg5NTc2NS1ob3ctdG8tdHJhbnNsYXRlLXZhci1iaWxsaW5nLWFkZHJlc3MtYWRkcmVzcy10aXRsZS1pbi1lbWFpbC10ZW1wbGF0ZXM/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.045 seconds

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