kataluszek Merchant From Germany Member since Apr 2016 kataluszek Sep 28 2016 11:11 PM And where? I can not find it in admin.
tim Founder From Sweden Member since May 2013 tim Sep 28 2016 11:34 PM Are you refering to the order copy?
kataluszek Merchant From Germany Member since Apr 2016 kataluszek Sep 29 2016 09:55 AM Yes first email - after order. I want to add to content: Terms & Conditions and Right to Revocation.
tim Founder From Sweden Member since May 2013 tim Sep 29 2016 03:48 PM templates/*/views/printable_order_copy.inc.php
kataluszek Merchant From Germany Member since Apr 2016 kataluszek Oct 2 2016 12:32 PM Yes I found it. But I have problem with another languages. Can I add - Terms & Conditions and Right to Revocation, as pdf - for each language separately? Or maybe as: echo language::translate('title_xxxx', 'xxxx'); But here text will be not formatted?
tim Founder From Sweden Member since May 2013 tim Oct 2 2016 01:33 PM To format the text you need to enable HTML when editing the translation. See the little checkbox when editing. If you want to attach a PDF to the email you would have to tweak email_order_copy() in controllers/ctrl_order.inc.php. See functions/func_email.inc.php which parameter is used for file attachments.
kataluszek Merchant From Germany Member since Apr 2016 kataluszek Oct 2 2016 01:54 PM I see it :D How can I add own translations code? Direct in file?
tim Founder From Sweden Member since May 2013 tim Oct 2 2016 01:55 PM Just enter whatever code you desire. Once the code is executed it will be in the database. language::translate('mycode', 'My text...');
kataluszek Merchant From Germany Member since Apr 2016 kataluszek Oct 2 2016 02:03 PM I thougt so. First I must add 2 changes to database. Terms & Conditions Right to Revocation And then language::translate ( 'terms.......' , 'text.....')
tim Founder From Sweden Member since May 2013 tim Oct 2 2016 02:15 PM Just add the translation placeholders to your view/document: language::translate('mycode', ''); Access the page so it will display once (translations will be generated). Go to Admin -> Translations -> and edit your translations.
kataluszek Merchant From Germany Member since Apr 2016 kataluszek Oct 2 2016 05:16 PM Ready :D Thank you
flymbox LiteCart Fan From India Member since Oct 2023 flymbox Nov 28 2023 08:30 AM functions/func_email.inc.php this file no have help me plice
tim Founder From Sweden Member since May 2013 tim Nov 28 2023 03:37 PM @flymbox, no you revived a thread that is 7½ years old. 👎 LiteCart 2.x uses a component named ent_email: https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/entities/ent_email.inc.php See how it is used here. https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/entities/ent_order.inc.php#L779-L782 If you want to pass HTML, pass a second parameter true to the function add_body() like this: ->add_body($myhtmlmessage, true).