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

#   PDF Inoice always in specific language

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 8 months ago [\#303281](#303281) by [juan123de](/forum/user/49326-juan123de "View juan123de's Profile")  *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303281 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")* was created by *[juan123de](/forum/user/49326-juan123de "View juan123de's Profile")*

-- HikaShop version -- : 4.0.2 Business

Hello!

I have to "force" the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?

(I can hardcode the wording, but not the product names...)

Thanks!

Juan

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5Njc5OC1wZGYtaW5vaWNlLWFsd2F5cy1pbi1zcGVjaWZpYy1sYW5ndWFnZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

7 years 8 months ago [\#303286](#303286) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303286 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")*

Hi,

The translated product names are stored with the order when the order is created and the product name at that point comes from the product name in the cart.
So it's not easy. You would have to develop a plugin and implement the onBeforeOrderCreate trigger in it to reload the product names with a MySQL query and change them in $order-&gt;products in that trigger.
Otherwise, in the invoice view file, you could also get the product_id from the product object and reload the product name with a MySQL query.
Either way, it's possible but not that easy.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 8 months ago [\#303334](#303334) by [juan123de](/forum/user/49326-juan123de "View juan123de's Profile")  Replied by *[juan123de](/forum/user/49326-juan123de "View juan123de's Profile")* on topic *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303334 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")*

Thanks! So if somebody buys a product in the Spanish shop, but backend language is english, the invoice is shown in english but product names in Spanish?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5Njc5OC1wZGYtaW5vaWNlLWFsd2F5cy1pbi1zcGVjaWZpYy1sYW5ndWFnZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

7 years 8 months ago [\#303336](#303336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303336 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")*

Hi,

The invoice you can generate in the backend will indeed be in English with the product names in Spanish. However, the invoice the customer can print on the frontend will be in Spanish and the product names in Spanish too since he will be logged in with his account in Spanish on your website.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

7 years 8 months ago [\#303435](#303435) by [juan123de](/forum/user/49326-juan123de "View juan123de's Profile")  Replied by *[juan123de](/forum/user/49326-juan123de "View juan123de's Profile")* on topic *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303435 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")*

And in the mails to the customer? Can we setup a language there? Or is it admin language too?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5Njc5OC1wZGYtaW5vaWNlLWFsd2F5cy1pbi1zcGVjaWZpYy1sYW5ndWFnZT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86283
- Thank you received: 14262
-
-

7 years 8 months ago [\#303438](#303438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PDF Inoice always in specific language](/forum/35-orders-management/896798-pdf-inoice-always-in-specific-language#303438 "-- HikaShop version -- : 4.0.2 Business  Hello!  I have to &quot;force&quot; the invoices to be alwazs in Spanish (due to legal reasons). How can I manage this?  (I can hardcode the wording, but not the product names...)  Thanks!  Juan")*

Hi,

It depends:
- for the order creation notification email, sent when the order is created, when the customer clicks on the finish button of the checkout, everything will be in Spanish.
- for the order status notification email, sent when the order status is changed, if it's the one sent when the payment notification is automatically reeived, then it should also be entirely in the language of the customer (unless there is a problem with the way the payment plugin is coded). However, if it is sent when you change manually the status of the order in the backend, then it will be in your backend language but the product names in the language of the customer.
- for the order notification email, sent when you click on the "email" button of the order details page in the backend, it will be in your backend language but the product names in the language of the customer.
So in most cases, your customers should see everything in the correct language in the emails.

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

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

[](#top)
