cikcak Posted October 1, 2014 Share Posted October 1, 2014 Im looking into invoice.tpl file and - {$order_detail.product_name} here I got product name. Its allright that customer can see product name in his language, but after all I need to get PDF in my local lang. So it is possible to download invoice from BO by employee language? I found only this in classes/HTMLtemplateInvoice.php $id_lang = Context::getContext()->language->id; So what should I edit? Classes/order/ordetDetail.php or classes/pdf/ .... ? Link to comment Share on other sites More sharing options...
tuk66 Posted October 1, 2014 Share Posted October 1, 2014 Invoices in BO are always in employee's language and in FO in customer's language. Link to comment Share on other sites More sharing options...
cikcak Posted October 1, 2014 Author Share Posted October 1, 2014 Mh I have installed clean 1.6 version and download invoice from BO and yes i can see BO in my employee language but product name still in that language which used client when bought it. Only product name still same. Link to comment Share on other sites More sharing options...
tuk66 Posted October 1, 2014 Share Posted October 1, 2014 Of course, the product name is stored in the product_name field in the ps_order_detail table. Only one language is used. It is like time marker. You can print the actual product name in any language but you cannot print this name as it was in the time of purchase. Link to comment Share on other sites More sharing options...
cikcak Posted October 1, 2014 Author Share Posted October 1, 2014 So where is any way to download it by my employee language? I dont need to change value in DB table. Just download and see it in my language. Link to comment Share on other sites More sharing options...
tuk66 Posted October 1, 2014 Share Posted October 1, 2014 I only know how to do it using the M4 PDF Extensions module: {$order[orders].order_detail[detail].product.name|escape:'htmlall':'UTF-8'} If products have attributes, slightly different solution must be used. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now