MissLili Posted July 8, 2014 Share Posted July 8, 2014 Hello hello! I can't find how (or where) to translate what is coming out of "$payment->payment_method" in the outputed PDF invoice. It's from this code: {foreach from=$order_invoice->getOrderPaymentCollection() item=payment} <tr> <td style="width: 50%">{$payment->payment_method}</td> <td style="width: 50%">{displayPrice price=$payment->amount currency=$order->id_currency}</td> </tr> {foreachelse} The present case I have to translate is "Free Order", but I guess there will other ones too... Someone knows where can I translate those "payment_method" ? Thank you Link to comment Share on other sites More sharing options...
MissLili Posted July 8, 2014 Author Share Posted July 8, 2014 If you are stuck like me, here is a temporaty solution: I changed the part: {$payment->payment_method} to {if $payment->payment_method == 'Free order'}{l s='Free order' pdf='true'}{/if} And then translated it in the BO > Translation At least this one is translated now.. But I guess I'll have to add the other possibilities as I see them appering until someone show up with a real solution Link to comment Share on other sites More sharing options...
MissLili Posted July 8, 2014 Author Share Posted July 8, 2014 Ok I realise now that at least one other thing is not translated on those PDF files... the discount lines I can't make {if} statement for all of them... it just make non sense... Anyone knows how to get the discount translated name retreived as well? The product names are translated so I guess it's not too hard to translate discount as well.. I just need one exemple... please Link to comment Share on other sites More sharing options...
tuk66 Posted July 9, 2014 Share Posted July 9, 2014 Some things are not translated because they are stored that way in orders. Carrier and voucher name are examples. Link to comment Share on other sites More sharing options...
MissLili Posted July 9, 2014 Author Share Posted July 9, 2014 Ho, that is good to know! Thank you! I understand it's not the case for the payment-method as you didn't specified it? About the carriers, it's a pity that they are simply not translatable at all yet :/ Link to comment Share on other sites More sharing options...
Recommended Posts